mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-24 05:36:29 +02:00
19 lines
770 B
Plaintext
19 lines
770 B
Plaintext
Token = "6129457865:AAFyzNYOAFbu...";
|
|
ChatID = "461699897";
|
|
ChannelID = "@testsichee";
|
|
Text = "Строковое значение";
|
|
Document = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
|
|
|
|
DocumentPath = GetTempFileName("docx");
|
|
CopyFile(Document, DocumentPath);
|
|
|
|
DocumentDD = New BinaryData(DocumentPath);
|
|
|
|
Result = OPI_Telegram.SendDocument(Token, ChatID, Text, Document);
|
|
|
|
Result = OPI_Telegram.SendDocument(Token, ChatID, Text, Document, , , "customname.docx");
|
|
|
|
Result = OPI_Telegram.SendDocument(Token, ChannelID, Text, DocumentPath);
|
|
|
|
Result = OPI_Telegram.SendDocument(Token, ChannelID, Text, DocumentDD, , , "customname.docx");
|