The Document sends a file to users.
The maximum size of the uploaded file is 5 MB.
There are limits on the number of uploaded files (image, audio, document) per account:
- On the Start plan, you can upload no more than 500 files of all types to the bot.
- On the Advanced plan, you can upload no more than 2500 files of all types to all bots.
- On the Professional plan, you can upload no more than 5000 files of all types to all bots.
The name of the document is displayed below the document itself.
Give the document file a name in Latin letters, one word and no spaces. Otherwise the document may not load or display.
From the Components section of the right panel, drag or double-click the Document component to the desired screen.
Click the Choose file button, select the document from the file system and load it into the component.
You can give the document a name in the Screen settings on the right panel, and also in the proplist that opens on the right side of the screen if you click on a component.
The Enter URL field can have a variable in it. The main condition is that the variable value is a link to the file. This can be either last_request or a document sent by the user.
The link must contain a link to the document, such as this link:
Document component supports content protection function in Telegram. When Protect Content checkbox is active in the component settings, the user will not be able to copy and forward information from the document sent by the bot.