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>");
//Explicit 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 file with chat ID and bot ID:
DoReact("TELEGRAM",1,"SENDPHOTO","caption<Hello world>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>,photo<G:\\1.jpg>");
//Sending geolocation with chat ID and bot ID:
DoReact("TELEGRAM",1,"SEND","text<Hello world>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>",longtitude<37.3428359>,latitude<55.6841654>,address<ITV>address<First_street>);
} |