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