Go to documentation repository
Page History
...
The TELEGRAM object sends events presented in the table. The procedure is started when the corresponding event occurs. The format of the event procedure for a mail message.
Code Block |
---|
OnEvent("TELEGRAM","_id_","_event_") |
Event | Event description | Event | Description | Comment |
ERROR | Message sending error | The error<> parameter contains the a text description of the error |
The format of the operator to describe actions with a mail message:
Code Block |
---|
DoReact("TELEGRAM","_id_","_command_" [,"_parameters_"]); |
The list of List of commands and parameters for the TELEGRAM object is given in the table:
Command—command description | Parameters | Description |
SEND—send | text<> | Message text |
chat_id<> | Chat identifier | |
bot_id<> | Bot identifier | |
longtitude<> | Geolocation longtitude | |
latitude<> | Geolocation latitude | |
address<> | Geolocation text address | |
SENDPHOTO SENDPHOTO—send photo | photo<> | Full path to the image file |
caption<> | File caption | |
chat_id<> | Chat identifier | |
bot_id<> | Bot identifier | |
longtitude<> | Geolocation longtitude | |
latitude<> | Geolocation latitude | |
address<> | Geolocation text address |
Examples of calling the command for sending a message to Telegram using a macro:
...
Overview
Content Tools