POST api/Telegram/SendChatTGMessage
Метод для работы сендера Telegram Отправить сообщение в телеграм с использованием чата
Request Information
URI Parameters
None.
Body Parameters
MessageStructName | Description | Type | Additional information |
---|---|---|---|
Id |
Id сообщения |
integer |
None. |
Chat |
Chat Id |
integer |
None. |
ChatId |
ChatId TG клиента |
integer |
None. |
Created |
Дата сообщения |
date |
None. |
Message |
Текст сообщения |
string |
None. |
From |
Отправитель |
string |
None. |
Phone |
Phone |
string |
None. |
EmployeeId |
Код сотрудника |
integer |
None. |
MessageType |
Тип сообщения, 0-CloseChatMode, 1-OpenChatMode, 2-Message, 3-Message without update menu, 4-AuthMessage, 5-UpdateMessage, 6-UpdateReaction |
MessageStructType |
None. |
Attachments |
Имя прикрепленного файла |
Collection of string |
None. |
Area |
Признак територии |
integer |
None. |
ChannelId |
Id канала |
integer |
None. |
ReplyId |
Reply message id |
integer |
None. |
Level |
ChatMessageLevel, 0 is ordinary |
integer |
None. |
Source |
Джерело діалогу |
MessageSource |
None. |
State |
Джерело діалогу |
MessageState |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Chat": 2, "ChatId": 3, "Created": "2025-09-02T23:20:08.1536431+00:00", "Message": "sample string 5", "From": "sample string 6", "Phone": "sample string 7", "EmployeeId": 1, "MessageType": 0, "Attachments": [ "sample string 1", "sample string 2" ], "Area": 8, "ChannelId": 9, "ReplyId": 10, "Level": 11, "Source": 0, "State": 0 }
application/xml, text/xml
Sample:
<MessageStruct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Repositories.Telegram"> <Area>8</Area> <Attachments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Attachments> <ChannelId>9</ChannelId> <Chat>2</Chat> <ChatId>3</ChatId> <Created>2025-09-02T23:20:08.1536431+00:00</Created> <EmployeeId>1</EmployeeId> <From>sample string 6</From> <Id>1</Id> <Level>11</Level> <Message>sample string 5</Message> <MessageType>CloseChatMode</MessageType> <Phone>sample string 7</Phone> <ReplyId>10</ReplyId> <Source>TGBot</Source> <State>Message</State> </MessageStruct>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>