1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-10 04:18:47 +02:00
OpenIntegrations/docs/en/examples/VKTeams/ChangeChatPicture.txt

16 lines
502 B
Plaintext
Raw Normal View History

2024-09-21 09:57:02 +02:00
 Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
2024-10-05 10:21:35 +02:00
File = "https://openyellow.neocities.org/test_data/spy2.png"; // URL
FilePath = GetTempFileName("png"); // Path
CopyFile(File, FilePath);
FileBD = New BinaryData(FilePath); // Binary
Result = OPI_VKTeams.ChangeChatPicture(Token, ChatID, File);
Result = OPI_VKTeams.ChangeChatPicture(Token, ChatID, FilePath);
Result = OPI_VKTeams.ChangeChatPicture(Token, ChatID, FileBD);