External Scripts

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

The video with an example:

An example of an external script you can be download from the link.

The external script should be hosted (for example, on Beget) and return an array with a ststus key serialized to JSON equal to 1 and the body key, which should contain your text. The text will be added to the one specified in the text field. If the command has nothing in the Text field, then the Bot uses only the data that will return the script.

For some operations in external scripts, chat_id (ID in the Telegram) is required. In order to find out your id in the Telegram it is enough to write to your own or our (@bot_vprogramme_rf_bot) bot: getChatId

Read in other languages: rus / deu