You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
14 lines
580 B
Plaintext
Vendored
14 lines
580 B
Plaintext
Vendored
Token = FunctionParameters["Telegram_Token"];
|
|
ChatID = FunctionParameters["Telegram_ChatID"];
|
|
ChannelID = FunctionParameters["Telegram_ChannelID"];
|
|
Text = FunctionParameters["String"];
|
|
|
|
KeyboardButtonsArray = New Array;
|
|
KeyboardButtonsArray.Add("Button1");
|
|
KeyboardButtonsArray.Add("Button2");
|
|
|
|
Keyboard = OPI_Telegram.FormKeyboardFromButtonArray(KeyboardButtonsArray, True);
|
|
Result = OPI_Telegram.SendTextMessage(Token, ChatID, Text, Keyboard);
|
|
|
|
Result = OPI_Telegram.SendTextMessage(Token, ChannelID, Text);
|