2024-09-12 20:35:30 +03:00
|
|
|
Extension = "docx";
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Document"];
|
2024-09-12 20:35:30 +03:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
Result = OPI_Viber.SendFile(Token, URL, UserID, SendingToChannel, Extension);
|
|
|
|
|
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.SendFile(Token, URL, UserID, SendingToChannel, Extension);
|