1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
OpenIntegrations/docs/en/examples/Bitrix24/MarkMessageAsReaded.txt
Vitaly the Alpaca (bot) a7b091d23e Main build (Jenkins)
2024-09-17 15:57:44 +03:00

13 lines
540 B
Plaintext

URL = FunctionParameters["Bitrix24_URL"];
ChatID = "chat" + FunctionParameters["Bitrix24_HookChatID"];
MessageID = FunctionParameters["Bitrix24_ChatMessageID"];
Result = OPI_Bitrix24.MarkMessageAsReaded(URL, ChatID, MessageID);
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
UserID = 10;
MessageID = FunctionParameters["Bitrix24_UserMessageID"];
Result = OPI_Bitrix24.MarkMessageAsReaded(URL, UserID, MessageID, Token);