1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-09-17 12:29:46 +03:00
parent d70e1ef5f6
commit ab33d2f19d
1319 changed files with 8970 additions and 8961 deletions
@@ -29,8 +29,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
User = 1011987091;
Result = OPI_VKTeams.ApprovePending(Token, ChatID, User);
@@ -30,8 +30,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
User = 1011987091;
Result = OPI_VKTeams.BlockChatUser(Token, ChatID, User, True);
@@ -27,10 +27,10 @@ Method at API documentation: [POST ​/chats​/avatar​/set](https://teams.vk.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
File = "https://openintegrations.dev/test_data/spy2.png"; // URL
File = FunctionParameters["Picture3"]; // URL
FilePath = GetTempFileName("png"); // Path
CopyFile(File, FilePath);
@@ -29,8 +29,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
User = 1011987091;
Result = OPI_VKTeams.DisapprovePending(Token, ChatID, User);
@@ -26,8 +26,8 @@ Method at API documentation: [GET /chats/getAdmins](https://teams.vk.com/botapi/
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Result = OPI_VKTeams.GetChatAdmins(Token, ChatID);
```
@@ -28,8 +28,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Result = OPI_VKTeams.GetChatBlockedUsers(Token, ChatID);
```
@@ -26,8 +26,8 @@ Method at API documentation: [GET /chats/getInfo](https://teams.vk.com/botapi/#/
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Result = OPI_VKTeams.GetChatInfo(Token, ChatID);
```
@@ -28,8 +28,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Result = OPI_VKTeams.GetChatJoinRequests(Token, ChatID);
```
@@ -27,8 +27,8 @@ Method at API documentation: [GET /chats/getMembers](https://teams.vk.com/botapi
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Result = OPI_VKTeams.GetChatMembers(Token, ChatID);
```
@@ -27,8 +27,8 @@ Method at API documentation: [GET /chats/members/delete](https://teams.vk.com/bo
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
User = 1011987091;
Result = OPI_VKTeams.RemoveChatMembers(Token, ChatID, User);
@@ -29,8 +29,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
Text = "New description";
Result = OPI_VKTeams.SetChatDescription(Token, ChatID, Text);
@@ -29,8 +29,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
Text = "Text of the new rules";
Result = OPI_VKTeams.SetChatRules(Token, ChatID, Text);
@@ -29,8 +29,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
Text = "New title";
Result = OPI_VKTeams.SetChatTitle(Token, ChatID, Text);
@@ -29,8 +29,8 @@ To call this method, the bot must be an administrator in the chat room.
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
User = 1011987091;
Result = OPI_VKTeams.UnblockChatUser(Token, ChatID, User);
@@ -25,7 +25,7 @@ Method at API documentation: [GET /self/get](https://teams.vk.com/botapi/#/self/
```bsl title="Code example"
Token = "001.3501506236.091...";
Token = FunctionParameters["VkTeams_Token"];
Result = OPI_VKTeams.CheckToken(Token);
```
@@ -27,7 +27,7 @@ Method at API documentation: [GET /events/get](https://teams.vk.com/botapi/#/eve
```bsl title="Code example"
Token = "001.3501506236.091...";
Token = FunctionParameters["VkTeams_Token"];
LastID = 0;
For N = 1 To 5 Do // In real work - endless loop
@@ -26,8 +26,8 @@ Method at API documentation: [GET /files/getInfo](https://teams.vk.com/botapi/#/
```bsl title="Code example"
Token = "001.3501506236.091...";
FileID = "ZkZgp98NdoukByPb3s8tGk66dffe4c1bd";
Token = FunctionParameters["VkTeams_Token"];
FileID = FunctionParameters["VkTeams_FileID"];
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
```
@@ -31,7 +31,7 @@ This method call should be used in response to receiving a callbackQuery event
```bsl title="Code example"
Token = "001.3501506236.091...";
Token = FunctionParameters["VkTeams_Token"];
LastID = 0;
For N = 1 To 5 Do
@@ -27,9 +27,9 @@ Method at API documentation: [GET /messages/deleteMessages](https://teams.vk.com
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
MessageID = "7415516728832034620";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
MessageID = FunctionParameters["VkTeams_MessageID"];
Result = OPI_VKTeams.DeleteMessage(Token, ChatID, MessageID);
```
@@ -31,9 +31,9 @@ You can mention a user by appending their userId to the text in the following fo
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
MessageID = "7415516728832034620";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
MessageID = FunctionParameters["VkTeams_MessageID"];
Text = "New message text";
Result = OPI_VKTeams.EditMessageText(Token, ChatID, MessageID, Text);
@@ -31,10 +31,10 @@ Only the chatId from events can be passed to the FromChatID (the code from the c
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FromChatID = "689203963@chat.agent";
MessageID = "7415516728832034620";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
FromChatID = FunctionParameters["VkTeams_ChatID2"];
MessageID = FunctionParameters["VkTeams_MessageID"];
Result = OPI_VKTeams.ForwardMessage(Token, MessageID, FromChatID, ChatID);
@@ -29,9 +29,9 @@ To call this method, the bot must be an administrator in the chat room
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
MessageID = "7415516728832034620";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
MessageID = FunctionParameters["VkTeams_MessageID"];
Result = OPI_VKTeams.PinMessage(Token, ChatID, MessageID);
```
@@ -30,9 +30,9 @@ Method at API documentation: [GET /messages/sendFile](https://teams.vk.com/botap
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FileID = "ZkZgp98NdoukByPb3s8tGk66dffe4c1bd";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
FileID = FunctionParameters["VkTeams_FileID"];
Text = "File caption";
Result = OPI_VKTeams.ResendFile(Token, ChatID, FileID, Text, "SameDoc.docx");
@@ -27,9 +27,9 @@ Method at API documentation: [GET /messages/sendVoice](https://teams.vk.com/bota
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FileID = "I000bSeg77KTQcif1rJayl66dffe5f1bd";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
FileID = FunctionParameters["VkTeams_VoiceID"];
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
```
@@ -30,11 +30,11 @@ Method at API documentation: [POST /messages/sendFile](https://teams.vk.com/bota
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Text = "File caption";
File = "https://openintegrations.dev/test_data/document.docx"; // URL
File = FunctionParameters["Document"]; // URL
FilePath = GetTempFileName("docx"); // Path
CopyFile(File, FilePath);
@@ -32,14 +32,14 @@ You can mention a user by appending their userId to the text in the following fo
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID"];
Text = "Message text";
Result = OPI_VKTeams.SendTextMessage(Token, ChatID, Text);
ChatID = "689203963@chat.agent";
ReplyID = "7415516728832034620";
ChatID = FunctionParameters["VkTeams_ChatID2"];
ReplyID = FunctionParameters["VkTeams_MessageID"];
Text = "<b>Bold text</b>";
Markup = "HTML";
@@ -32,12 +32,12 @@ If you want the client to display this file as a playable voice message, it must
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
ReplyID = "7415516728832034620";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
ReplyID = FunctionParameters["VkTeams_MessageID"];
Text = "File caption";
File = "https://openintegrations.dev/test_data/song.m4a" ; // URL
File = FunctionParameters["Audio2"] ; // URL
FilePath = GetTempFileName("m4a"); // Path
CopyFile(File, FilePath);
@@ -29,9 +29,9 @@ To call this method, the bot must be an administrator in the chat room
```bsl title="Code example"
Token = "001.3501506236.091...";
ChatID = "689203963@chat.agent";
MessageID = "7415516728832034620";
Token = FunctionParameters["VkTeams_Token"];
ChatID = FunctionParameters["VkTeams_ChatID2"];
MessageID = FunctionParameters["VkTeams_MessageID"];
Result = OPI_VKTeams.UnpinMessage(Token, ChatID, MessageID);
```