Go to documentation repository
...
| Code Block |
|---|
OnEvent("MACRO","3","RUN") //run macro 3
{
//Sending with chat_id & bot_id from object settings:
DoReact("TELEGRAM",1,"SEND","text<Hello world>");
//Setting chat_id & bot_id in the command:
DoReact("TELEGRAM",1,"SEND","text<Hello world>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>");
//Sending image file with explicit chat ID and bot ID setting:
DoReact("TELEGRAM",1,"SENDPHOTO","caption<Hello world>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>,photo<G:\\1.jpg>");
} |
...