Document

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:
  • A trial plan allows to upload no more than 100 files of all types to all bots on the account. The total size of the files should not exceed 100 MB.
  • 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.

Configuring the сomponent

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.

Document settings for Telegram:

  • Protect the content — it will not allow you to forward the document.
  • Unique identifier of the message effect — the animated effect you selected will come along with the document. You can select this effect from the drop-down list or manually register it as a numeric code.

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:

http://static.botmother.com/howtos/setnamebotfatherru.pdf

Protected content

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.

To the beginning ↑