Go to documentation repository
...
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.
...
Event | Description | Comment |
ERROR | Message sending error | The error<> parameter contains the a test 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 commands and parameters for the 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—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:
...