You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-02 20:52:28 +02:00
15 lines
565 B
Plaintext
Vendored
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); |