Syntax of Multimedia and Text Design

Материал из боты telegram - ebot.one - редактор ботов
Версия от 14:29, 9 февраля 2018; Maiske (обсуждение | вклад) ([eng])
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Attention!! It should be noted that there must be a blank before using the syntax, for example, with [b] or with [img_telegram, the message should not begin.

There are 2 ways to send a file to a user from a bot:

  • The following is a method of sending images and files by their URLs, but there are restrictions on such sending (read below).
  • You can read how to send an image or a file by its ID in Telegram "here".

The files in this case should be accessible by http, i.e. This link should open (if this is a picture) or (downloaded in the case of zip, for example) your file. Sometimes it's enough just to copy the path to the picture through the right mouse button in the browser. To store zip files, you will need ftp on any hosting. For example, the Beget who has free fare.

Syntax in the Command Description

My Text [img_telegram|http://way/my_img.jpg]

For Example: My Text [img_telegram|http://ebot.one/all/s_radoid/dialogs/images/logo/channel_logo.png]

My Text [audio_telegram|http://way/my_img.mp3]

My Text [document_telegram|http://way/my_img.doc]

My Text [video_telegram|http-way/my_img.mp4|Additional Text]

For Example: My Text [video_telegram|http://ebot.one/all/s_radoid/dialogs/demo/attaches/video/test.mp4]

Syntax in a Command Description

My Text [img_telegram|http://way/my_img.jpg]

For Example: My Text [img_telegram|http://ebot.one/all/s_radoid/dialogs/images/logo/channel_logo.png]

My Text [audio_telegram|http://way/my_img.mp3]

May Text [document_telegram|http://way/my_img.doc]

My Text [video_telegram|http-way/my_img.mp4|Additional Text]

For Example: My Text [video_telegram|http://ebot.one/all/s_radoid/dialogs/demo/attaches/video/test.mp4]

IMPORTANT: Documents will not be attached if:

They have numbers or in formats other than zip, gif, mp4, pdf

For example, will be attached [document_telegram|https://ebot.one/all/s_radoid/dialogs/demo/attaches/document/test.zip]

Will be not attached [document_telegram|https://ebot.one/all/s_radoid/dialogs/demo/attaches/document/test.doc] или [document_telegram|https://ebot.one/all/s_radoid/dialogs/demo/attaches/document/test1.zip]

Example of sending a zip document:

Send zip 1.png

Send zip 2.png


Example of sending video:

Media sintax.jpg

Syntax of Response from External Script

  • Picture $return_mas['body'] = " My Text [img_telegram|http://путь/my_img.jpg] ";
  • Audio $return_mas['body'] = " My Text [audio_telegram|http://путь/my_img.mp3] ";
  • Video $return_mas['body'] = " My Text [video_telegram|http://путь/my_img.mp4] ";
  • Document $return_mas['body'] = " My Text [document_telegram|http://путь/my_img.zip] ";

Advanced Syntax of Media Attachments with Additional Text:

  • Video $return_mas['body'] = " My Text [video_telegram|http-путь/my_img.mp4|Additional Text] ";


  • Text formatting $return_mas['body'] = " <'b'>BOLD<'/b'><'i'>INCLINE<'/i'> <'u'>UNDERLINE<'/u'>";

Read in Other Languages: rus / deu