1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-02 22:05:37 +02:00
OpenIntegrations/docs/en/examples/Viber/SendTextMessage.txt

21 lines
718 B
Plaintext
Raw Normal View History

 Text = "TestMessage";
2024-09-17 15:57:44 +03:00
UserID = FunctionParameters["Viber_UserID"];
Token = FunctionParameters["Viber_Token"];
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);
2024-09-17 15:57:44 +03:00
UserID = FunctionParameters["Viber_ChannelAdminID"];
Token = FunctionParameters["Viber_ChannelToken"];
SendingToChannel = True;
Result = OPI_Viber.SendTextMessage(Token, Text, UserID, SendingToChannel, Keyboard);