You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-27 22:18:36 +02:00
Main build (Jenkins)
This commit is contained in:
2
docs/en/examples/GreenAPI/AddGroupMember.txt
vendored
2
docs/en/examples/GreenAPI/AddGroupMember.txt
vendored
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
2
docs/en/examples/GreenAPI/DeleteMessage.txt
vendored
2
docs/en/examples/GreenAPI/DeleteMessage.txt
vendored
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ChatID = "120363410406221140@g.us";
|
ChatID = "120363410406221140@g.us";
|
||||||
MessageID = "BAE5EFC6A8BA2E29";
|
MessageID = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.DeleteMessage(AccessParameters, ChatID, MessageID);
|
Result = OPI_GreenAPI.DeleteMessage(AccessParameters, ChatID, MessageID);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ReceiptID = "1";
|
ReceiptID = "2";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.DeleteNotificationFromQueue(AccessParameters, ReceiptID);
|
Result = OPI_GreenAPI.DeleteNotificationFromQueue(AccessParameters, ReceiptID);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ChatID = "120363410406221140@g.us";
|
ChatID = "120363410406221140@g.us";
|
||||||
MessageID = "BAE5EFC6A8BA2E29";
|
MessageID = "BAE5DA82B33D5FB6";
|
||||||
Text = "New message text";
|
Text = "New message text";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
From = "11001234567@c.us";
|
From = "11001234567@c.us";
|
||||||
Target = "120363410406221140@g.us";
|
Target = "120363410406221140@g.us";
|
||||||
|
|
||||||
Message = "BAE5EFC6A8BA2E29";
|
Message = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
||||||
|
|||||||
2
docs/en/examples/GreenAPI/GetMessage.txt
vendored
2
docs/en/examples/GreenAPI/GetMessage.txt
vendored
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ChatID = "120363410406221140@g.us";
|
ChatID = "120363410406221140@g.us";
|
||||||
MessageID = "BAE5EFC6A8BA2E29";
|
MessageID = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
||||||
|
|||||||
2
docs/en/examples/GreenAPI/LeaveGroup.txt
vendored
2
docs/en/examples/GreenAPI/LeaveGroup.txt
vendored
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
2
docs/en/examples/GreenAPI/SetAdminRights.txt
vendored
2
docs/en/examples/GreenAPI/SetAdminRights.txt
vendored
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
Name = "New name";
|
Name = "New name";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
|
|
||||||
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);
|
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
|
|
||||||
Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic
|
Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
|
|
||||||
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
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...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "@testsichee";
|
ChatID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
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 = "CQACAgIAAx0EcNsaZQACPMVn2HaD-bag_koFfUC1zfgRye09hgAC1mcAAoEEyUrFjn7UngXH3jYE";
|
FileID = "CQACAgIAAx0EcNsaZQACPNpn2IJ1IKMU6XReBul1BMWehh3SlAACOmgAAoEEyUqpbKT3UncUkzYE";
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
|
|
||||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
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...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
NewName = "NewTestTitle";
|
NewName = "NewTestTitle";
|
||||||
NewIcon = "5310132165583840589";
|
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...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
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...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
|
|
||||||
Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic
|
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...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
MessageID = "12578";
|
MessageID = "12594";
|
||||||
|
|
||||||
Description = "New picture description";
|
Description = "New picture description";
|
||||||
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
MessageID = "12575";
|
MessageID = "12591";
|
||||||
|
|
||||||
ButtonArray = New Array;
|
ButtonArray = New Array;
|
||||||
ButtonArray.Add("New button 3");
|
ButtonArray.Add("New button 3");
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "@testsichee";
|
ChatID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
Text = "New message text";
|
Text = "New message text";
|
||||||
|
|
||||||
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, 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...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
||||||
|
|||||||
@@ -44,4 +44,6 @@ Method at API documentation: [ArchiveChat](https://green-api.com/docs/api/servic
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
null
|
||||||
|
```
|
||||||
|
|||||||
@@ -43,4 +43,11 @@ More details in the API documentation: [Get access parameters to instance](https
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"apiUrl": "https://7105.api.greenapi.com",
|
||||||
|
"mediaUrl": "https://7105.media.greenapi.com",
|
||||||
|
"idInstance": "7105187566",
|
||||||
|
"apiTokenInstance": "***"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,11 @@ Method at API documentation: [GetWaSettings](https://green-api.com/docs/api/acco
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"avatar": "https://pps.whatsapp.net/v/t61.24694-24/485272430_682563794168632_7959313538941438418_n.jpg?stp=dst-jpg_s96x96_tt6&ccb=11-4&oh=01_Q5AaIb6cvPwDUqVRI-0Er0synFWccN4F-7iSSCUsEd3iugZ4&oe=67E5F918&_nc_sid=5e03e0&_nc_cat=105",
|
||||||
|
"phone": "***",
|
||||||
|
"stateInstance": "authorized",
|
||||||
|
"deviceId": "***"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -44,4 +44,6 @@ Method at API documentation: [GetAuthorizationCode](https://green-api.com/docs/a
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
null
|
||||||
|
```
|
||||||
|
|||||||
@@ -31,4 +31,24 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"webhookUrl": "<URL for notification sending>",
|
||||||
|
"webhookUrlToken": "<a token to access your notification server, if required>",
|
||||||
|
"delaySendMessagesMilliseconds": "<message sending interval in milliseconds>",
|
||||||
|
"markIncomingMessagesReaded": "<mark incoming messages as read: yes, no>",
|
||||||
|
"markIncomingMessagesReadedOnReply": "<mark incoming messages as read when sending a message to chat: yes, no>",
|
||||||
|
"outgoingWebhook": "<receive notifications about the send/deliver/read status of outgoing messages: yes, no>",
|
||||||
|
"outgoingMessageWebhook": "<receive notifications of messages sent from phone: yes, no>",
|
||||||
|
"outgoingAPIMessageWebhook": "<receive notifications about messages sent via API: yes, no>",
|
||||||
|
"stateWebhook": "<receive notifications about changes in the authorization state of the instance: yes, no>",
|
||||||
|
"incomingWebhook": "<receive notifications of incoming messages and files: yes, no>",
|
||||||
|
"deviceWebhook": "<receive notifications about the device (phone) and battery level: yes, no>",
|
||||||
|
"keepOnlineStatus": "<sets the 'Online' status for your account>",
|
||||||
|
"pollMessageWebhook": "<receive notifications when a poll is created and voted on: yes, no>",
|
||||||
|
"incomingBlockWebhook": "<receive notifications when a chat is added to the blocked contacts list: yes, no>",
|
||||||
|
"incomingCallWebhook": "<receive notifications about incoming call statuses: yes, no>",
|
||||||
|
"editedMessageWebhook": "<to be notified when a message has been edited: yes, no>",
|
||||||
|
"deletedMessageWebhook": "<receive notifications when a message has been deleted: yes, no>"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,31 @@ Method at API documentation: [GetSettings](https://green-api.com/docs/api/accoun
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"wid": "1234567890@c.us",
|
||||||
|
"countryInstance": "",
|
||||||
|
"typeAccount": "",
|
||||||
|
"webhookUrl": "",
|
||||||
|
"webhookUrlToken": "",
|
||||||
|
"delaySendMessagesMilliseconds": 0,
|
||||||
|
"markIncomingMessagesReaded": "no",
|
||||||
|
"markIncomingMessagesReadedOnReply": "no",
|
||||||
|
"sharedSession": "no",
|
||||||
|
"proxyInstance": "system proxy",
|
||||||
|
"outgoingWebhook": "no",
|
||||||
|
"outgoingMessageWebhook": "no",
|
||||||
|
"outgoingAPIMessageWebhook": "yes",
|
||||||
|
"incomingWebhook": "no",
|
||||||
|
"deviceWebhook": "no",
|
||||||
|
"statusInstanceWebhook": "no",
|
||||||
|
"stateWebhook": "no",
|
||||||
|
"enableMessagesHistory": "no",
|
||||||
|
"keepOnlineStatus": "no",
|
||||||
|
"pollMessageWebhook": "yes",
|
||||||
|
"incomingBlockWebhook": "no",
|
||||||
|
"incomingCallWebhook": "no",
|
||||||
|
"editedMessageWebhook": "yes",
|
||||||
|
"deletedMessageWebhook": "yes"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,8 @@ Method at API documentation: [GetStateInstance](https://green-api.com/docs/api/a
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"stateInstance": "authorized"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,8 @@ Method at API documentation: [Reboot](https://green-api.com/docs/api/account/Reb
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"isReboot": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -46,4 +46,10 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"reason": null,
|
||||||
|
"urlAvatar": "https://pps.whatsapp.net/v/t61.24694-24/479997299_1393886681766706_4950704950921393865_n.jpg?ccb=11-4&oh=01_Q5AaIco8fe3MVnrJMWxGx9a5DFrXOLpWFOEca1FBHmGl_UST&oe=67E60D3B&_nc_sid=5e03e0&_nc_cat=102",
|
||||||
|
"setProfilePicture": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -44,4 +44,6 @@ Method at API documentation: [UnarchiveChat](https://green-api.com/docs/api/serv
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
null
|
||||||
|
```
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/ap
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
@@ -46,4 +46,8 @@ Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/ap
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"addParticipant": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -45,4 +45,10 @@ Method at API documentation: [CreateGroup](https://green-api.com/docs/api/groups
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"created": true,
|
||||||
|
"chatId": "120363398678792739@g.us",
|
||||||
|
"groupInviteLink": "https://chat.whatsapp.com/EXbJgldhJQDDrpS6XP8Yrq"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
@@ -46,4 +46,8 @@ Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"removeParticipant": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Method at API documentation: [GetGroupData](https://green-api.com/docs/api/group
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
||||||
@@ -44,4 +44,21 @@ Method at API documentation: [GetGroupData](https://green-api.com/docs/api/group
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"groupId": "120363398678792739@g.us",
|
||||||
|
"owner": "***",
|
||||||
|
"subject": "New group",
|
||||||
|
"creation": 1742274598,
|
||||||
|
"participants": [
|
||||||
|
{
|
||||||
|
"id": "***",
|
||||||
|
"isAdmin": true,
|
||||||
|
"isSuperAdmin": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"subjectTime": null,
|
||||||
|
"groupInviteLink": "https://chat.whatsapp.com/EXbJgldhJQDDrpS6XP8Yrq",
|
||||||
|
"isMessageAllowed": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/groups/
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
||||||
@@ -44,4 +44,8 @@ Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/groups/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"removeAdmin": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Method at API documentation: [RemoveAdmin](https://green-api.com/docs/api/groups
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
@@ -46,4 +46,8 @@ Method at API documentation: [RemoveAdmin](https://green-api.com/docs/api/groups
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"removeAdmin": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Method at API documentation: [SetGroupAdmin](https://green-api.com/docs/api/grou
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
UserID = "123123123@c.us";
|
UserID = "123123123@c.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
@@ -46,4 +46,9 @@ Method at API documentation: [SetGroupAdmin](https://green-api.com/docs/api/grou
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"setGroupAdmin": true,
|
||||||
|
"error": "participant not found"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
||||||
@@ -48,4 +48,10 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"reason": null,
|
||||||
|
"urlAvatar": null,
|
||||||
|
"setGroupPicture": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/gr
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
GroupID = "120363417820160348@g.us";
|
GroupID = "120363397584380843@g.us";
|
||||||
Name = "New name";
|
Name = "New name";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
@@ -46,4 +46,8 @@ Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/gr
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"updateGroupName": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -45,4 +45,156 @@ Method at API documentation: [GetChatHistory](https://green-api.com/docs/api/jou
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE5DCC8C1092AA9",
|
||||||
|
"timestamp": 1742274637,
|
||||||
|
"typeMessage": "extendedTextMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"textMessage": "New message",
|
||||||
|
"extendedTextMessage": {
|
||||||
|
"text": "New message",
|
||||||
|
"description": "",
|
||||||
|
"title": "",
|
||||||
|
"previewType": "None",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"forwardingScore": 1,
|
||||||
|
"isForwarded": true
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE536960B4DEC58",
|
||||||
|
"timestamp": 1742274636,
|
||||||
|
"typeMessage": "contactMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"contact": {
|
||||||
|
"displayName": "Bicycle",
|
||||||
|
"vcard": "BEGIN:VCARD\nVERSION:3.0\nN:;;;\nFN:Bicycle\nORG:Bicycle\nTEL;type=CELL;type=VOICE;waid=79001234568:+79001234568\nEND:VCARD",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"quotedMessage": {
|
||||||
|
"stanzaId": "BAE506D813842127",
|
||||||
|
"participant": "1234567890@c.us",
|
||||||
|
"typeMessage": "contactMessage",
|
||||||
|
"contact": {
|
||||||
|
"displayName": "Artem Evpatoriysky Petrovich",
|
||||||
|
"vcard": "BEGIN:VCARD\nVERSION:3.0\nN:Petrovich;Artem;Evpatoriysky;\nFN:Artem Evpatoriysky Petrovich\nORG:Bicycle\nTEL;type=CELL;type=VOICE;waid=79001234568:+79001234568\nEND:VCARD",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE506D813842127",
|
||||||
|
"timestamp": 1742274634,
|
||||||
|
"typeMessage": "contactMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"contact": {
|
||||||
|
"displayName": "Artem Evpatoriysky Petrovich",
|
||||||
|
"vcard": "BEGIN:VCARD\nVERSION:3.0\nN:Petrovich;Artem;Evpatoriysky;\nFN:Artem Evpatoriysky Petrovich\nORG:Bicycle\nTEL;type=CELL;type=VOICE;waid=79001234568:+79001234568\nEND:VCARD",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE57765EF184EBE",
|
||||||
|
"timestamp": 1742274633,
|
||||||
|
"typeMessage": "locationMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"location": {
|
||||||
|
"nameLocation": "",
|
||||||
|
"address": "",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"quotedMessage": {
|
||||||
|
"stanzaId": "BAE5B5DB91EC93BD",
|
||||||
|
"participant": "1234567890@c.us",
|
||||||
|
"typeMessage": "locationMessage",
|
||||||
|
"location": {
|
||||||
|
"nameLocation": "Victory Square, Minsk",
|
||||||
|
"address": "Victory sq.",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE5B5DB91EC93BD",
|
||||||
|
"timestamp": 1742274632,
|
||||||
|
"typeMessage": "locationMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"location": {
|
||||||
|
"nameLocation": "Victory Square, Minsk",
|
||||||
|
"address": "Victory sq.",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE536F160DEF884",
|
||||||
|
"timestamp": 1742274631,
|
||||||
|
"typeMessage": "pollMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"pollMessageData": {
|
||||||
|
"name": "What's your favorite color?",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"optionName": "Red"
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|||||||
@@ -42,4 +42,6 @@ Method at API documentation: [LastIncomingMessages](https://green-api.com/docs/a
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
[]
|
||||||
|
```
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ Method at API documentation: [GetMessage](https://green-api.com/docs/api/journal
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ChatID = "120363410406221140@g.us";
|
ChatID = "120363410406221140@g.us";
|
||||||
MessageID = "BAE5EFC6A8BA2E29";
|
MessageID = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
||||||
@@ -46,4 +46,28 @@ Method at API documentation: [GetMessage](https://green-api.com/docs/api/journal
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE56825B1C0FC63",
|
||||||
|
"timestamp": 1742274622,
|
||||||
|
"typeMessage": "extendedTextMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"textMessage": "New message",
|
||||||
|
"extendedTextMessage": {
|
||||||
|
"text": "New message",
|
||||||
|
"description": "",
|
||||||
|
"title": "",
|
||||||
|
"previewType": "None",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "BAE588DA94C72DC2",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -42,4 +42,156 @@ Method at API documentation: [LastOutgoingMessages](https://green-api.com/docs/a
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE5DCC8C1092AA9",
|
||||||
|
"timestamp": 1742274637,
|
||||||
|
"typeMessage": "extendedTextMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"textMessage": "New message",
|
||||||
|
"extendedTextMessage": {
|
||||||
|
"text": "New message",
|
||||||
|
"description": "",
|
||||||
|
"title": "",
|
||||||
|
"previewType": "None",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"forwardingScore": 1,
|
||||||
|
"isForwarded": true
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE536960B4DEC58",
|
||||||
|
"timestamp": 1742274636,
|
||||||
|
"typeMessage": "contactMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"contact": {
|
||||||
|
"displayName": "Bicycle",
|
||||||
|
"vcard": "BEGIN:VCARD\nVERSION:3.0\nN:;;;\nFN:Bicycle\nORG:Bicycle\nTEL;type=CELL;type=VOICE;waid=79001234568:+79001234568\nEND:VCARD",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"quotedMessage": {
|
||||||
|
"stanzaId": "BAE506D813842127",
|
||||||
|
"participant": "1234567890@c.us",
|
||||||
|
"typeMessage": "contactMessage",
|
||||||
|
"contact": {
|
||||||
|
"displayName": "Artem Evpatoriysky Petrovich",
|
||||||
|
"vcard": "BEGIN:VCARD\nVERSION:3.0\nN:Petrovich;Artem;Evpatoriysky;\nFN:Artem Evpatoriysky Petrovich\nORG:Bicycle\nTEL;type=CELL;type=VOICE;waid=79001234568:+79001234568\nEND:VCARD",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE506D813842127",
|
||||||
|
"timestamp": 1742274634,
|
||||||
|
"typeMessage": "contactMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"contact": {
|
||||||
|
"displayName": "Artem Evpatoriysky Petrovich",
|
||||||
|
"vcard": "BEGIN:VCARD\nVERSION:3.0\nN:Petrovich;Artem;Evpatoriysky;\nFN:Artem Evpatoriysky Petrovich\nORG:Bicycle\nTEL;type=CELL;type=VOICE;waid=79001234568:+79001234568\nEND:VCARD",
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE57765EF184EBE",
|
||||||
|
"timestamp": 1742274633,
|
||||||
|
"typeMessage": "locationMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"location": {
|
||||||
|
"nameLocation": "",
|
||||||
|
"address": "",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"quotedMessage": {
|
||||||
|
"stanzaId": "BAE5B5DB91EC93BD",
|
||||||
|
"participant": "1234567890@c.us",
|
||||||
|
"typeMessage": "locationMessage",
|
||||||
|
"location": {
|
||||||
|
"nameLocation": "Victory Square, Minsk",
|
||||||
|
"address": "Victory sq.",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE5B5DB91EC93BD",
|
||||||
|
"timestamp": 1742274632,
|
||||||
|
"typeMessage": "locationMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"location": {
|
||||||
|
"nameLocation": "Victory Square, Minsk",
|
||||||
|
"address": "Victory sq.",
|
||||||
|
"jpegThumbnail": "",
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"forwardingScore": 0,
|
||||||
|
"isForwarded": false
|
||||||
|
},
|
||||||
|
"statusMessage": "",
|
||||||
|
"sendByApi": true,
|
||||||
|
"deletedMessageId": "",
|
||||||
|
"editedMessageId": "",
|
||||||
|
"isEdited": false,
|
||||||
|
"isDeleted": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "outgoing",
|
||||||
|
"idMessage": "BAE536F160DEF884",
|
||||||
|
"timestamp": 1742274631,
|
||||||
|
"typeMessage": "pollMessage",
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"pollMessageData": {
|
||||||
|
"name": "What's your favorite color?",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"optionName": "Red"
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,8 @@ Method at API documentation: [ClearMessagesQueue](https://green-api.com/docs/api
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"isCleared": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,17 @@ Method at API documentation: [ShowMessagesQueue](https://green-api.com/docs/api/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"messageID": "BAE58D3A8D0E8319",
|
||||||
|
"type": "editMessage",
|
||||||
|
"body": {
|
||||||
|
"chatId": "120363410406221140@g.us",
|
||||||
|
"idMessage": "BAE56825B1C0FC63",
|
||||||
|
"message": "New message text",
|
||||||
|
"linkPreview": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Method at API documentation: [DeleteMessage](https://green-api.com/docs/api/serv
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ChatID = "120363410406221140@g.us";
|
ChatID = "120363410406221140@g.us";
|
||||||
MessageID = "BAE5EFC6A8BA2E29";
|
MessageID = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.DeleteMessage(AccessParameters, ChatID, MessageID);
|
Result = OPI_GreenAPI.DeleteMessage(AccessParameters, ChatID, MessageID);
|
||||||
@@ -47,4 +47,6 @@ Method at API documentation: [DeleteMessage](https://green-api.com/docs/api/serv
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
null
|
||||||
|
```
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Method at API documentation: [EditMessage](https://green-api.com/docs/api/servic
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ChatID = "120363410406221140@g.us";
|
ChatID = "120363410406221140@g.us";
|
||||||
MessageID = "BAE5EFC6A8BA2E29";
|
MessageID = "BAE5DA82B33D5FB6";
|
||||||
Text = "New message text";
|
Text = "New message text";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
@@ -48,4 +48,8 @@ Method at API documentation: [EditMessage](https://green-api.com/docs/api/servic
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE58D3A8D0E8319"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Method at API documentation: [ForwardMessages](https://green-api.com/docs/api/se
|
|||||||
From = "11001234567@c.us";
|
From = "11001234567@c.us";
|
||||||
Target = "120363410406221140@g.us";
|
Target = "120363410406221140@g.us";
|
||||||
|
|
||||||
Message = "BAE5EFC6A8BA2E29";
|
Message = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
||||||
@@ -49,4 +49,10 @@ Method at API documentation: [ForwardMessages](https://green-api.com/docs/api/se
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"messages": [
|
||||||
|
"BAE5DCC8C1092AA9"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -41,4 +41,12 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"phoneContact": 79001234568,
|
||||||
|
"firstName": "Artem",
|
||||||
|
"middleName": "Evpatoriysky",
|
||||||
|
"lastName": "Petrovich",
|
||||||
|
"company": "Bicycle"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -39,4 +39,11 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"latitude": 53.908522,
|
||||||
|
"longitude": 27.574821,
|
||||||
|
"address": "Victory Square, Minsk",
|
||||||
|
"nameLocation": "Victory sq."
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -54,4 +54,8 @@ Method at API documentation: [SendContact](https://green-api.com/docs/api/sendin
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE506D813842127"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -51,4 +51,8 @@ Method at API documentation: [SendFileByUrl](https://green-api.com/docs/api/send
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE57E461911A39B"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -53,4 +53,9 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE5B8AB679FDE43",
|
||||||
|
"urlFile": "https://do-mediaout-7105.fra1.digitaloceanspaces.com/7105187566/d6fceb32-0748-40d4-bac3-5b2748112275.jpg"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -53,4 +53,8 @@ Method at API documentation: [SendPoll](https://green-api.com/docs/api/sending/S
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE5B5DB91EC93BD"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -54,4 +54,8 @@ Method at API documentation: [SendPoll](https://green-api.com/docs/api/sending/S
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE5BEF5BEB74882"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -47,4 +47,8 @@ Method at API documentation: [SendMessage](https://green-api.com/docs/api/sendin
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"idMessage": "BAE56825B1C0FC63"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Method at API documentation: [DeleteNotification](https://green-api.com/docs/api
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
ReceiptID = "1";
|
ReceiptID = "2";
|
||||||
|
|
||||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Result = OPI_GreenAPI.DeleteNotificationFromQueue(AccessParameters, ReceiptID);
|
Result = OPI_GreenAPI.DeleteNotificationFromQueue(AccessParameters, ReceiptID);
|
||||||
@@ -44,4 +44,9 @@ Method at API documentation: [DeleteNotification](https://green-api.com/docs/api
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"result": true,
|
||||||
|
"reason": ""
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -46,4 +46,8 @@ Method at API documentation: [DownloadFile](https://green-api.com/docs/api/recei
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"downloadUrl": "https://sw-media.storage.yandexcloud.net/7105187566/1d0da1d4-8fdb-4ced-876e-8887a449dd9d.jpeg"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -46,4 +46,8 @@ Method at API documentation: [ReadChat](https://green-api.com/docs/api/marks/Rea
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"setRead": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -42,4 +42,6 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
NOT JSON: AddIn.OPI_RCON.Main
|
||||||
|
```
|
||||||
|
|||||||
@@ -45,4 +45,9 @@ When passing connection parameters, a new connection will be created and closed
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"data": "There are 0/20 players online:",
|
||||||
|
"result": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -39,4 +39,11 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"url": "127.0.0.1:25565",
|
||||||
|
"password": "***",
|
||||||
|
"read_timeout": 20,
|
||||||
|
"write_timeout": 20
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -43,4 +43,6 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
true
|
||||||
|
```
|
||||||
|
|||||||
@@ -50,4 +50,8 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Result"
|
||||||
|
{
|
||||||
|
"result": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Method at API documentation: [pinChatMessage](https://core.telegram.org/bots/api
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Method at API documentation: [unpinChatMessage](https://core.telegram.org/bots/a
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Method at API documentation: [getFile](https://core.telegram.org/bots/api#getfil
|
|||||||
|
|
||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
FileID = "CQACAgIAAx0EcNsaZQACPMVn2HaD-bag_koFfUC1zfgRye09hgAC1mcAAoEEyUrFjn7UngXH3jYE";
|
FileID = "CQACAgIAAx0EcNsaZQACPNpn2IJ1IKMU6XReBul1BMWehh3SlAACOmgAAoEEyUqpbKT3UncUkzYE";
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
|
|
||||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Method at API documentation: [deleteMessage](https://core.telegram.org/bots/api#
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "@testsichee";
|
ChatID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Method at API documentation: [forwardMessage](https://core.telegram.org/bots/api
|
|||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
ChannelID = "@testsichee";
|
ChannelID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
|
|
||||||
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ Method at API documentation: [editMessageCaption](https://core.telegram.org/bots
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
MessageID = "12578";
|
MessageID = "12594";
|
||||||
|
|
||||||
Description = "New picture description";
|
Description = "New picture description";
|
||||||
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ Method at API documentation: [editMessageReplyMarkup](https://core.telegram.org/
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "461699897";
|
ChatID = "461699897";
|
||||||
MessageID = "12575";
|
MessageID = "12591";
|
||||||
|
|
||||||
ButtonArray = New Array;
|
ButtonArray = New Array;
|
||||||
ButtonArray.Add("New button 3");
|
ButtonArray.Add("New button 3");
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ Method at API documentation: [editMessageText](https://core.telegram.org/bots/ap
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
ChatID = "@testsichee";
|
ChatID = "@testsichee";
|
||||||
MessageID = "15548";
|
MessageID = "15569";
|
||||||
Text = "New message text";
|
Text = "New message text";
|
||||||
|
|
||||||
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);
|
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Method at API documentation: [deleteForumTopic](https://core.telegram.org/bots/a
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
|
|
||||||
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Method at API documentation: [editForumTopic](https://core.telegram.org/bots/api
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "6129457865:AAFyzNYOAFbu...";
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||||||
Chat = "-1001971186208";
|
Chat = "-1001971186208";
|
||||||
Topic = "8838";
|
Topic = "8849";
|
||||||
NewName = "NewTestTitle";
|
NewName = "NewTestTitle";
|
||||||
NewIcon = "5310132165583840589";
|
NewIcon = "5310132165583840589";
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
IDПользователя = "123123123@c.us";
|
IDПользователя = "123123123@c.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
Имя = "New name";
|
Имя = "New name";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDЧата = "120363410406221140@g.us";
|
IDЧата = "120363410406221140@g.us";
|
||||||
IDСообщения = "BAE5EFC6A8BA2E29";
|
IDСообщения = "BAE5DA82B33D5FB6";
|
||||||
Текст = "Новый текст сообщения";
|
Текст = "Новый текст сообщения";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
IDПользователя = "123123123@c.us";
|
IDПользователя = "123123123@c.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
IDПользователя = "123123123@c.us";
|
IDПользователя = "123123123@c.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
IDПользователя = "123123123@c.us";
|
IDПользователя = "123123123@c.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
Откуда = "11001234567@c.us";
|
Откуда = "11001234567@c.us";
|
||||||
Куда = "120363410406221140@g.us";
|
Куда = "120363410406221140@g.us";
|
||||||
|
|
||||||
Сообщение = "BAE5EFC6A8BA2E29";
|
Сообщение = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.ПереслатьСообщения(ПараметрыДоступа, Откуда, Куда, Сообщение);
|
Результат = OPI_GreenAPI.ПереслатьСообщения(ПараметрыДоступа, Откуда, Куда, Сообщение);
|
||||||
|
|||||||
2
docs/ru/examples/GreenAPI/ПокинутьГруппу.txt
vendored
2
docs/ru/examples/GreenAPI/ПокинутьГруппу.txt
vendored
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.ПокинутьГруппу(ПараметрыДоступа, IDГруппы);
|
Результат = OPI_GreenAPI.ПокинутьГруппу(ПараметрыДоступа, IDГруппы);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.ПолучитьИнформациюОГруппе(ПараметрыДоступа, IDГруппы);
|
Результат = OPI_GreenAPI.ПолучитьИнформациюОГруппе(ПараметрыДоступа, IDГруппы);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDЧата = "120363410406221140@g.us";
|
IDЧата = "120363410406221140@g.us";
|
||||||
IDСообщения = "BAE5EFC6A8BA2E29";
|
IDСообщения = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.ПолучитьСообщение(ПараметрыДоступа, IDЧата, IDСообщения);
|
Результат = OPI_GreenAPI.ПолучитьСообщение(ПараметрыДоступа, IDЧата, IDСообщения);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDЧата = "120363410406221140@g.us";
|
IDЧата = "120363410406221140@g.us";
|
||||||
IDСообщения = "BAE5EFC6A8BA2E29";
|
IDСообщения = "BAE5DA82B33D5FB6";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.УдалитьСообщение(ПараметрыДоступа, IDЧата, IDСообщения);
|
Результат = OPI_GreenAPI.УдалитьСообщение(ПараметрыДоступа, IDЧата, IDСообщения);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
IdInstance = "71051...";
|
IdInstance = "71051...";
|
||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
IDДоставки = "1";
|
IDДоставки = "2";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.УдалитьУведомлениеИзОчереди(ПараметрыДоступа, IDДоставки);
|
Результат = OPI_GreenAPI.УдалитьУведомлениеИзОчереди(ПараметрыДоступа, IDДоставки);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||||
|
|
||||||
Картинка = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Путь или Двоичные данные
|
Картинка = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Путь или Двоичные данные
|
||||||
IDГруппы = "120363417820160348@g.us";
|
IDГруппы = "120363397584380843@g.us";
|
||||||
|
|
||||||
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
ПараметрыДоступа = OPI_GreenAPI.СформироватьПараметрыДоступа(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||||
Результат = OPI_GreenAPI.УстановитьКартинкуГруппы(ПараметрыДоступа, IDГруппы, Картинка);
|
Результат = OPI_GreenAPI.УстановитьКартинкуГруппы(ПараметрыДоступа, IDГруппы, Картинка);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||||
IDКанала = "@testsichee";
|
IDКанала = "@testsichee";
|
||||||
IDСообщения = "15548";
|
IDСообщения = "15569";
|
||||||
|
|
||||||
Результат = OPI_Telegram.ЗакрепитьСообщение(Токен, IDКанала, IDСообщения);
|
Результат = OPI_Telegram.ЗакрепитьСообщение(Токен, IDКанала, IDСообщения);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||||
Чат = "-1001971186208";
|
Чат = "-1001971186208";
|
||||||
Тема = "8838";
|
Тема = "8849";
|
||||||
|
|
||||||
Результат = OPI_Telegram.ЗакрытьТемуФорума(Токен, Чат); // Закрывает главную тему
|
Результат = OPI_Telegram.ЗакрытьТемуФорума(Токен, Чат); // Закрывает главную тему
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||||
IDЧата = "461699897";
|
IDЧата = "461699897";
|
||||||
IDСообщения = "12575";
|
IDСообщения = "12591";
|
||||||
|
|
||||||
МассивКнопок = Новый Массив;
|
МассивКнопок = Новый Массив;
|
||||||
МассивКнопок.Добавить("Новая кнопка 1");
|
МассивКнопок.Добавить("Новая кнопка 1");
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||||
IDЧата = "461699897";
|
IDЧата = "461699897";
|
||||||
IDСообщения = "12578";
|
IDСообщения = "12594";
|
||||||
|
|
||||||
Описание = "Новое описание картинки";
|
Описание = "Новое описание картинки";
|
||||||
Результат = OPI_Telegram.ЗаменитьОписаниеСообщения(Токен, IDЧата, IDСообщения, Описание);
|
Результат = OPI_Telegram.ЗаменитьОписаниеСообщения(Токен, IDЧата, IDСообщения, Описание);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||||
IDЧата = "@testsichee";
|
IDЧата = "@testsichee";
|
||||||
IDСообщения = "15548";
|
IDСообщения = "15569";
|
||||||
Текст = "Новый текст сообщения";
|
Текст = "Новый текст сообщения";
|
||||||
|
|
||||||
Результат = OPI_Telegram.ЗаменитьТекстСообщения(Токен, IDЧата, IDСообщения, Текст);
|
Результат = OPI_Telegram.ЗаменитьТекстСообщения(Токен, IDЧата, IDСообщения, Текст);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Токен = "6129457865:AAFyzNYOAFbu...";
|
Токен = "6129457865:AAFyzNYOAFbu...";
|
||||||
Чат = "-1001971186208";
|
Чат = "-1001971186208";
|
||||||
Тема = "8838";
|
Тема = "8849";
|
||||||
НовоеИмя = "Новый тестовый заголовок";
|
НовоеИмя = "Новый тестовый заголовок";
|
||||||
НовяИконка = "5310132165583840589";
|
НовяИконка = "5310132165583840589";
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user