1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-07 23:03:08 +02:00
Files
OpenIntegrations/docs/en/examples/Telegram/SendTextMessage.txt

16 lines
569 B
Plaintext
Raw Normal View History

2025-10-21 11:36:43 +03:00
 Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897";
ChannelID = "@testsichee";
Text = "Строковое значение";
2025-07-06 01:01:25 +03:00
KeyboardButtonsArray = New Array;
KeyboardButtonsArray.Add("Button1");
KeyboardButtonsArray.Add("Button2");
2025-09-22 22:16:56 +03:00
// With keyboard, in chat
2025-07-06 01:01:25 +03:00
Keyboard = OPI_Telegram.FormKeyboardFromButtonArray(KeyboardButtonsArray, True);
2025-09-22 22:16:56 +03:00
Result = OPI_Telegram.SendTextMessage(Token, ChatID, Text, Keyboard);
2025-07-06 01:01:25 +03:00
2025-09-22 22:16:56 +03:00
// Simple, to channel
2025-07-06 01:01:25 +03:00
Result = OPI_Telegram.SendTextMessage(Token, ChannelID, Text);