1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/Viber/SendTextMessage.txt
Vitaly the Alpaca (bot) aa10e4c564 Main build (Jenkins)
2025-10-21 11:36:43 +03:00

21 lines
681 B
Plaintext
Vendored

Text = "TestMessage";
UserID = "d3jxe61Z4W73nmNkjYGgZg==";
Token = "523b5b25ed27e6ec-fdf013e4...";
SendingToChannel = False;
ButtonArray = New Array;
ButtonArray.Add("Button 1");
ButtonArray.Add("Button 2");
ButtonArray.Add("Button 3");
Keyboard = OPI_Viber.CreateKeyboardFromArrayButton(ButtonArray);
Result = OPI_Viber.SendTextMessage(Token, Text, UserID, SendingToChannel, Keyboard);
UserID = "tMNGhftyUPrB3r1lD+bT4g==";
Token = "523b58ba82afffaa-7ef3b426...";
SendingToChannel = True;
Result = OPI_Viber.SendTextMessage(Token, Text, UserID, SendingToChannel, Keyboard);