Перейти в хранилище документации
Обратиться в техническую поддержку
По макрокоманде 1 отправлять с помощью бота Telegram текст, изображение или геолокацию.
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN") { //Sending with chat_id & bot_id from object settings: DoReactStr("TELEGRAM","1","SEND","text<Intellect works great>"); //Explicit setting chat_id & bot_id in the command: DoReactStr("TELEGRAM","1","SEND","text<Intellect works great>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>"); //Sending file with chat ID and bot ID: DoReactStr("TELEGRAM",1,"SENDPHOTO","caption<Intellect works great>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>,photo<G:\\1.jpg>"); //Sending geolocation with chat ID and bot ID: DoReactStr("TELEGRAM",1,"SEND","text<Hello world>,chat_id<828752651>,bot_id<809045046:AAGtKxtDWu5teRGKW_Li8wFBQuJ-l4A9h38>",longtitude<37.3428359>,latitude<55.6841654>,address<Office>); }