1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-09 23:56:48 +02:00
Files
Vitaly the Alpaca (bot) aeb4d14a82 Main build (Jenkins)
2026-02-13 14:09:07 +03:00

15 lines
565 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);