1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/Telegram/SendTextMessage.txt
Vitaly the Alpaca (bot) 3c9eb7d3db Main build (Jenkins)
2025-09-22 22:16:56 +03:00

16 lines
569 B
Plaintext
Vendored

Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "Строковое значение";
KeyboardButtonsArray = New Array;
KeyboardButtonsArray.Add("Button1");
KeyboardButtonsArray.Add("Button2");
// With keyboard, in chat
Keyboard = OPI_Telegram.FormKeyboardFromButtonArray(KeyboardButtonsArray, True);
Result = OPI_Telegram.SendTextMessage(Token, ChatID, Text, Keyboard);
// Simple, to channel
Result = OPI_Telegram.SendTextMessage(Token, ChannelID, Text);