You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
|
||||
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
|
||||
Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
|
||||
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
||||
|
||||
2
docs/en/examples/Telegram/DeleteMessage.txt
vendored
2
docs/en/examples/Telegram/DeleteMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
||||
|
||||
2
docs/en/examples/Telegram/DownloadFile.txt
vendored
2
docs/en/examples/Telegram/DownloadFile.txt
vendored
@@ -1,4 +1,4 @@
|
||||
FileID = "CQACAgIAAx0EcNsaZQACTihotVy19BG8OfJeroIh8z_3_rjp4AACnXsAAsO6qUkMYnSqVYQTSzYE";
|
||||
FileID = "CQACAgIAAx0EcNsaZQACTj1otafA9qOMeepy5tr0PRhcriTDswACt4AAAsO6qUksrgZAK0QmsjYE";
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
|
||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||
|
||||
2
docs/en/examples/Telegram/EditForumTopic.txt
vendored
2
docs/en/examples/Telegram/EditForumTopic.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
NewName = "NewTestTitle";
|
||||
NewIcon = "5310132165583840589";
|
||||
|
||||
|
||||
2
docs/en/examples/Telegram/ForwardMessage.txt
vendored
2
docs/en/examples/Telegram/ForwardMessage.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
||||
|
||||
2
docs/en/examples/Telegram/OpenForumTopic.txt
vendored
2
docs/en/examples/Telegram/OpenForumTopic.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
|
||||
Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic
|
||||
|
||||
|
||||
2
docs/en/examples/Telegram/PinMessage.txt
vendored
2
docs/en/examples/Telegram/PinMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "15789";
|
||||
MessageID = "15805";
|
||||
|
||||
Description = "New picture description";
|
||||
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "15786";
|
||||
MessageID = "15802";
|
||||
|
||||
ButtonArray = New Array;
|
||||
ButtonArray.Add("New button 3");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);
|
||||
|
||||
2
docs/en/examples/Telegram/UnpinMessage.txt
vendored
2
docs/en/examples/Telegram/UnpinMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
||||
|
||||
2
docs/en/examples/VK/AddProduct.txt
vendored
2
docs/en/examples/VK/AddProduct.txt
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary or File path
|
||||
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or File path
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "4135";
|
||||
Property = "4154";
|
||||
OptionArray = New Array;
|
||||
OptionArray.Add("Yellow");
|
||||
OptionArray.Add("Blue");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Selection = "136";
|
||||
Product = "11763275";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/CloseDiscussion.txt
vendored
2
docs/en/examples/VK/CloseDiscussion.txt
vendored
@@ -1,3 +1,3 @@
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "54086168";
|
||||
DiscussionID = "54086682";
|
||||
Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters);
|
||||
|
||||
4
docs/en/examples/VK/CreateAd.txt
vendored
4
docs/en/examples/VK/CreateAd.txt
vendored
@@ -1,9 +1,9 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
CampaignNumber = "1031536174";
|
||||
CampaignNumber = "1031537328";
|
||||
DailyLimit = 150;
|
||||
CategoryNumber = 126;
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
AccountID = "1607951446";
|
||||
|
||||
Result = OPI_VK.CreateAd(CampaignNumber
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg";
|
||||
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg";
|
||||
PropVariant1 = "7701";
|
||||
PropVariant2 = "7702";
|
||||
PropVariant1 = "7722";
|
||||
PropVariant2 = "7723";
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image1);
|
||||
|
||||
2
docs/en/examples/VK/DeleteAlbum.txt
vendored
2
docs/en/examples/VK/DeleteAlbum.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
AlbumID = "309903969";
|
||||
AlbumID = "309910317";
|
||||
|
||||
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeleteCollection.txt
vendored
2
docs/en/examples/VK/DeleteCollection.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.DeleteSelection(Selection, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeletePost.txt
vendored
2
docs/en/examples/VK/DeletePost.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
|
||||
Result = OPI_VK.DeletePost(PostID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeleteProduct.txt
vendored
2
docs/en/examples/VK/DeleteProduct.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Product = "11763275";
|
||||
|
||||
Result = OPI_VK.DeleteProduct(Product, Parameters);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "4135";
|
||||
Property = "4154";
|
||||
|
||||
Result = OPI_VK.DeleteProductProperty(Property, Parameters);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Option = "7701";
|
||||
Option = "7722";
|
||||
|
||||
Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/EditProduct.txt
vendored
2
docs/en/examples/VK/EditProduct.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Product = "11763275";
|
||||
|
||||
ProductDescription = New Map;
|
||||
ProductDescription.Insert("Name", "EditedTestProduct");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "EditedCollection";
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);
|
||||
|
||||
2
docs/en/examples/VK/EditProductProperty.txt
vendored
2
docs/en/examples/VK/EditProductProperty.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "Color (change.)";
|
||||
Property = "4135";
|
||||
Property = "4154";
|
||||
|
||||
Result = OPI_VK.EditProductProperty(Name, Property, Parameters);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "4135";
|
||||
Option = "7701";
|
||||
Property = "4154";
|
||||
Option = "7722";
|
||||
Value = "New variant name";
|
||||
|
||||
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);
|
||||
|
||||
4
docs/en/examples/VK/GetProductsByID.txt
vendored
4
docs/en/examples/VK/GetProductsByID.txt
vendored
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11761312";
|
||||
Item2 = "11761313";
|
||||
Item1 = "11763281";
|
||||
Item2 = "11763284";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
2
docs/en/examples/VK/GetSelectionsByID.txt
vendored
2
docs/en/examples/VK/GetSelectionsByID.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.GetSelectionsByID(Selection, Parameters);
|
||||
|
||||
4
docs/en/examples/VK/GroupProducts.txt
vendored
4
docs/en/examples/VK/GroupProducts.txt
vendored
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11761312";
|
||||
Item2 = "11761313";
|
||||
Item1 = "11763281";
|
||||
Item2 = "11763284";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
2
docs/en/examples/VK/LikePost.txt
vendored
2
docs/en/examples/VK/LikePost.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
|
||||
Result = OPI_VK.LikePost(PostID, , Parameters);
|
||||
|
||||
2
docs/en/examples/VK/OpenDiscussion.txt
vendored
2
docs/en/examples/VK/OpenDiscussion.txt
vendored
@@ -1,3 +1,3 @@
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "54086168";
|
||||
DiscussionID = "54086682";
|
||||
Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/PostToDiscussion.txt
vendored
2
docs/en/examples/VK/PostToDiscussion.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "54086168";
|
||||
DiscussionID = "54086682";
|
||||
Message = "I like yellow more";
|
||||
|
||||
Result = OPI_VK.WriteInDiscussion(DiscussionID, Message, Parameters);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Selection = "136";
|
||||
Product = "11763275";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.RemoveProductFromSelection(Product, Selection, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/SavePictureToAlbum.txt
vendored
2
docs/en/examples/VK/SavePictureToAlbum.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
ImageDescription = "AutoTestImage";
|
||||
AlbumID = "309903969";
|
||||
AlbumID = "309910317";
|
||||
|
||||
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, File path or Binary Data
|
||||
TFN = GetTempFileName("png");
|
||||
|
||||
2
docs/en/examples/VK/WriteComment.txt
vendored
2
docs/en/examples/VK/WriteComment.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
Text = "NewComment";
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
WallID = Parameters["owner_id"];
|
||||
|
||||
Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters);
|
||||
|
||||
2
docs/en/examples/VKTeams/DeleteMessage.txt
vendored
2
docs/en/examples/VKTeams/DeleteMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.DeleteMessage(Token, ChatID, MessageID);
|
||||
|
||||
2
docs/en/examples/VKTeams/EditMessageText.txt
vendored
2
docs/en/examples/VKTeams/EditMessageText.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_VKTeams.EditMessageText(Token, ChatID, MessageID, Text);
|
||||
|
||||
2
docs/en/examples/VKTeams/ForwardMessage.txt
vendored
2
docs/en/examples/VKTeams/ForwardMessage.txt
vendored
@@ -1,7 +1,7 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
FromChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.ForwardMessage(Token, MessageID, FromChatID, ChatID);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "001.3501506236.091...";
|
||||
FileID = "vTf1dBa6vzW7zPvuxkZXFm68b5695f1bd";
|
||||
FileID = "cpn1c1fb5o0jJs4XqMX1vy68b5cf5e1bd";
|
||||
|
||||
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
|
||||
|
||||
2
docs/en/examples/VKTeams/PinMessage.txt
vendored
2
docs/en/examples/VKTeams/PinMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.PinMessage(Token, ChatID, MessageID);
|
||||
|
||||
2
docs/en/examples/VKTeams/ResendFile.txt
vendored
2
docs/en/examples/VKTeams/ResendFile.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
FileID = "vTf1dBa6vzW7zPvuxkZXFm68b5695f1bd";
|
||||
FileID = "cpn1c1fb5o0jJs4XqMX1vy68b5cf5e1bd";
|
||||
Text = "File caption";
|
||||
|
||||
Result = OPI_VKTeams.ResendFile(Token, ChatID, FileID, Text);
|
||||
|
||||
2
docs/en/examples/VKTeams/ResendVoice.txt
vendored
2
docs/en/examples/VKTeams/ResendVoice.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
FileID = "I000bjiruPu2ndBOmJ3DQA68b569691bd";
|
||||
FileID = "I000bxEy98V9yePQkITrsH68b5cf741bd";
|
||||
|
||||
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
|
||||
|
||||
2
docs/en/examples/VKTeams/SendTextMessage.txt
vendored
2
docs/en/examples/VKTeams/SendTextMessage.txt
vendored
@@ -5,7 +5,7 @@
|
||||
Result = OPI_VKTeams.SendTextMessage(Token, ChatID, Text);
|
||||
|
||||
ChatID = "689203963@chat.agent";
|
||||
ReplyID = "7545052422788364692";
|
||||
ReplyID = "7545164542909626792";
|
||||
Text = "<b>Bold text</b>";
|
||||
Markup = "HTML";
|
||||
|
||||
|
||||
2
docs/en/examples/VKTeams/SendVoice.txt
vendored
2
docs/en/examples/VKTeams/SendVoice.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
ReplyID = "7545052422788364692";
|
||||
ReplyID = "7545164542909626792";
|
||||
|
||||
File = "https://hut.openintegrations.dev/test_data/song.m4a"; // URL
|
||||
FilePath = GetTempFileName("m4a"); // Path
|
||||
|
||||
2
docs/en/examples/VKTeams/UnpinMessage.txt
vendored
2
docs/en/examples/VKTeams/UnpinMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.UnpinMessage(Token, ChatID, MessageID);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [pinChatMessage](https://core.telegram.org/bots/api
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
||||
```
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [unpinChatMessage](https://core.telegram.org/bots/a
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
||||
```
|
||||
|
||||
@@ -32,7 +32,7 @@ Method at API documentation: [getFile](https://core.telegram.org/bots/api#getfil
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
FileID = "CQACAgIAAx0EcNsaZQACTihotVy19BG8OfJeroIh8z_3_rjp4AACnXsAAsO6qUkMYnSqVYQTSzYE";
|
||||
FileID = "CQACAgIAAx0EcNsaZQACTj1otafA9qOMeepy5tr0PRhcriTDswACt4AAAsO6qUksrgZAK0QmsjYE";
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
|
||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [deleteMessage](https://core.telegram.org/bots/api#
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [forwardMessage](https://core.telegram.org/bots/api
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
|
||||
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [editMessageCaption](https://core.telegram.org/bots
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "15789";
|
||||
MessageID = "15805";
|
||||
|
||||
Description = "New picture description";
|
||||
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [editMessageReplyMarkup](https://core.telegram.org/
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "15786";
|
||||
MessageID = "15802";
|
||||
|
||||
ButtonArray = New Array;
|
||||
ButtonArray.Add("New button 3");
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [editMessageText](https://core.telegram.org/bots/ap
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "19999";
|
||||
MessageID = "20020";
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [deleteForumTopic](https://core.telegram.org/bots/a
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
|
||||
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [editForumTopic](https://core.telegram.org/bots/api
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "11197";
|
||||
Topic = "11208";
|
||||
NewName = "NewTestTitle";
|
||||
NewIcon = "5310132165583840589";
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
CampaignNumber = "1031536174";
|
||||
CampaignNumber = "1031537328";
|
||||
DailyLimit = 150;
|
||||
CategoryNumber = 126;
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
AccountID = "1607951446";
|
||||
|
||||
Result = OPI_VK.CreateAd(CampaignNumber
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
AlbumID = "309903969";
|
||||
AlbumID = "309910317";
|
||||
|
||||
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
|
||||
Result = OPI_VK.DeletePost(PostID, Parameters);
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "54086168";
|
||||
DiscussionID = "54086682";
|
||||
Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters);
|
||||
```
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "54086168";
|
||||
DiscussionID = "54086682";
|
||||
Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters);
|
||||
```
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
|
||||
Result = OPI_VK.LikePost(PostID, , Parameters);
|
||||
```
|
||||
|
||||
@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
Text = "NewComment";
|
||||
PostID = "9269";
|
||||
PostID = "9279";
|
||||
WallID = Parameters["owner_id"];
|
||||
|
||||
Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters);
|
||||
|
||||
@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary or File path
|
||||
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Binary or File path
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image1);
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Product = "11763275";
|
||||
|
||||
Result = OPI_VK.DeleteProduct(Product, Parameters);
|
||||
```
|
||||
|
||||
@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Product = "11763275";
|
||||
|
||||
ProductDescription = New Map;
|
||||
ProductDescription.Insert("Name", "EditedTestProduct");
|
||||
|
||||
@@ -30,8 +30,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11761312";
|
||||
Item2 = "11761313";
|
||||
Item1 = "11763281";
|
||||
Item2 = "11763284";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
@@ -31,8 +31,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11761312";
|
||||
Item2 = "11761313";
|
||||
Item1 = "11763281";
|
||||
Item2 = "11763284";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "4135";
|
||||
Property = "4154";
|
||||
OptionArray = New Array;
|
||||
OptionArray.Add("Yellow");
|
||||
OptionArray.Add("Blue");
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Option = "7701";
|
||||
Option = "7722";
|
||||
|
||||
Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters);
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "4135";
|
||||
Property = "4154";
|
||||
|
||||
Result = OPI_VK.DeleteProductProperty(Property, Parameters);
|
||||
```
|
||||
|
||||
@@ -32,8 +32,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "4135";
|
||||
Option = "7701";
|
||||
Property = "4154";
|
||||
Option = "7722";
|
||||
Value = "New variant name";
|
||||
|
||||
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);
|
||||
|
||||
@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "Color (change.)";
|
||||
Property = "4135";
|
||||
Property = "4154";
|
||||
|
||||
Result = OPI_VK.EditProductProperty(Name, Property, Parameters);
|
||||
```
|
||||
|
||||
@@ -31,8 +31,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11761304";
|
||||
Selection = "136";
|
||||
Product = "11763275";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters);
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "EditedCollection";
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
Selection = "136";
|
||||
Selection = "137";
|
||||
|
||||
Result = OPI_VK.GetSelectionsByID(Selection, Parameters);
|
||||
```
|
||||
|
||||
@@ -33,7 +33,7 @@ Method at API documentation: [GET /files/getInfo](https://teams.vk.com/botapi/#/
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
FileID = "vTf1dBa6vzW7zPvuxkZXFm68b5695f1bd";
|
||||
FileID = "cpn1c1fb5o0jJs4XqMX1vy68b5cf5e1bd";
|
||||
|
||||
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
|
||||
```
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [GET /messages/deleteMessages](https://teams.vk.com
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.DeleteMessage(Token, ChatID, MessageID);
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ Method at API documentation: [GET /messages/editText](https://teams.vk.com/botap
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_VKTeams.EditMessageText(Token, ChatID, MessageID, Text);
|
||||
|
||||
@@ -40,7 +40,7 @@ Method at API documentation: [GET /messages/sendText](https://teams.vk.com/botap
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
FromChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.ForwardMessage(Token, MessageID, FromChatID, ChatID);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [GET /chats/pinMessage](https://teams.vk.com/botapi
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.PinMessage(Token, ChatID, MessageID);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [GET /messages/sendFile](https://teams.vk.com/botap
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
FileID = "vTf1dBa6vzW7zPvuxkZXFm68b5695f1bd";
|
||||
FileID = "cpn1c1fb5o0jJs4XqMX1vy68b5cf5e1bd";
|
||||
Text = "File caption";
|
||||
|
||||
Result = OPI_VKTeams.ResendFile(Token, ChatID, FileID, Text);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [GET /messages/sendVoice](https://teams.vk.com/bota
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
||||
FileID = "I000bjiruPu2ndBOmJ3DQA68b569691bd";
|
||||
FileID = "I000bxEy98V9yePQkITrsH68b5cf741bd";
|
||||
|
||||
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
|
||||
```
|
||||
|
||||
@@ -45,7 +45,7 @@ Method at API documentation: [GET /messages/sendText](https://teams.vk.com/botap
|
||||
Result = OPI_VKTeams.SendTextMessage(Token, ChatID, Text);
|
||||
|
||||
ChatID = "689203963@chat.agent";
|
||||
ReplyID = "7545052422788364692";
|
||||
ReplyID = "7545164542909626792";
|
||||
Text = "<b>Bold text</b>";
|
||||
Markup = "HTML";
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
ReplyID = "7545052422788364692";
|
||||
ReplyID = "7545164542909626792";
|
||||
|
||||
File = "https://hut.openintegrations.dev/test_data/song.m4a"; // URL
|
||||
FilePath = GetTempFileName("m4a"); // Path
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [GET /chats/unpinMessage](https://teams.vk.com/bota
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "001.3501506236.091...";
|
||||
ChatID = "689203963@chat.agent";
|
||||
MessageID = "7545052422788364692";
|
||||
MessageID = "7545164542909626792";
|
||||
|
||||
Result = OPI_VKTeams.UnpinMessage(Token, ChatID, MessageID);
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDКанала = "@testsichee";
|
||||
IDСообщения = "19999";
|
||||
IDСообщения = "20020";
|
||||
|
||||
Результат = OPI_Telegram.ЗакрепитьСообщение(Токен, IDКанала, IDСообщения);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
Чат = "-1001971186208";
|
||||
Тема = "11197";
|
||||
Тема = "11208";
|
||||
|
||||
Результат = OPI_Telegram.ЗакрытьТемуФорума(Токен, Чат); // Закрывает главную тему
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDЧата = "461699897";
|
||||
IDСообщения = "15786";
|
||||
IDСообщения = "15802";
|
||||
|
||||
МассивКнопок = Новый Массив;
|
||||
МассивКнопок.Добавить("Новая кнопка 1");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDЧата = "461699897";
|
||||
IDСообщения = "15789";
|
||||
IDСообщения = "15805";
|
||||
|
||||
Описание = "Новое описание картинки";
|
||||
Результат = OPI_Telegram.ЗаменитьОписаниеСообщения(Токен, IDЧата, IDСообщения, Описание);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDЧата = "@testsichee";
|
||||
IDСообщения = "19999";
|
||||
IDСообщения = "20020";
|
||||
Текст = "Новый текст сообщения";
|
||||
|
||||
Результат = OPI_Telegram.ЗаменитьТекстСообщения(Токен, IDЧата, IDСообщения, Текст);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
Чат = "-1001971186208";
|
||||
Тема = "11197";
|
||||
Тема = "11208";
|
||||
НовоеИмя = "Новый тестовый заголовок";
|
||||
НовяИконка = "5310132165583840589";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDКанала = "@testsichee";
|
||||
IDСообщения = "19999";
|
||||
IDСообщения = "20020";
|
||||
|
||||
Результат = OPI_Telegram.ОткрепитьСообщение(Токен, IDКанала, IDСообщения);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
Чат = "-1001971186208";
|
||||
Тема = "11197";
|
||||
Тема = "11208";
|
||||
|
||||
Результат = OPI_Telegram.ОткрытьТемуФорума(Токен, Чат); // Открывает главную тему
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
Чат = "-1001971186208";
|
||||
Тема = "11197";
|
||||
Тема = "11208";
|
||||
|
||||
Результат = OPI_Telegram.ОчиститьСписокЗакрепленныхСообщенийТемы(Токен, Чат);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDЧата = "461699897";
|
||||
IDКанала = "@testsichee";
|
||||
IDСообщения = "19999";
|
||||
IDСообщения = "20020";
|
||||
|
||||
Результат = OPI_Telegram.ПереслатьСообщение(Токен, IDСообщения, IDКанала, IDЧата);
|
||||
|
||||
2
docs/ru/examples/Telegram/СкачатьФайл.txt
vendored
2
docs/ru/examples/Telegram/СкачатьФайл.txt
vendored
@@ -1,4 +1,4 @@
|
||||
IDФайла = "CQACAgIAAx0EcNsaZQACTihotVy19BG8OfJeroIh8z_3_rjp4AACnXsAAsO6qUkMYnSqVYQTSzYE";
|
||||
IDФайла = "CQACAgIAAx0EcNsaZQACTj1otafA9qOMeepy5tr0PRhcriTDswACt4AAAsO6qUksrgZAK0QmsjYE";
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
|
||||
Результат = OPI_Telegram.СкачатьФайл(Токен, IDФайла);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||
IDЧата = "@testsichee";
|
||||
IDСообщения = "19999";
|
||||
IDСообщения = "20020";
|
||||
|
||||
Результат = OPI_Telegram.УдалитьСообщение(Токен, IDЧата, IDСообщения);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user