mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-26 05:37:27 +02:00
23 lines
818 B
Plaintext
23 lines
818 B
Plaintext
Token = FunctionParameters["VkTeams_Token"];
|
|
ChatID = FunctionParameters["VkTeams_ChatID"];
|
|
Text = "Message text";
|
|
|
|
Result = OPI_VKTeams.SendTextMessage(Token, ChatID, Text);
|
|
|
|
ChatID = FunctionParameters["VkTeams_ChatID2"];
|
|
ReplyID = FunctionParameters["VkTeams_MessageID"];
|
|
Text = "<b>Bold text</b>";
|
|
Markup = "HTML";
|
|
|
|
Keyboard = New Array;
|
|
ButtonsLineArray = New Array;
|
|
|
|
ButtonsLineArray.Add(OPI_VKTeams.MakeActionButton("Button1", "ButtonEvent1", , "attention"));
|
|
|
|
ButtonsLineArray.Add(OPI_VKTeams.MakeActionButton("Button2", , "https://openintegrations.dev"));
|
|
|
|
Keyboard.Add(ButtonsLineArray);
|
|
Keyboard.Add(ButtonsLineArray);
|
|
|
|
Result = OPI_VKTeams.SendTextMessage(Token, ChatID, Text, ReplyID, Keyboard, Markup);
|