POST api/Telegram/AddChatId

Метод для работы сендера Telegram Вносит новые ChatId

Request Information

URI Parameters

None.

Body Parameters

TgUserInfo
NameDescriptionTypeAdditional information
Phone

string

None.

ChatId

integer

None.

ServiceId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Phone": "sample string 1",
  "ChatId": 2,
  "ServiceId": 3
}

application/xml, text/xml

Sample:
<TgUserInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Models.dto">
  <ChatId>2</ChatId>
  <Phone>sample string 1</Phone>
  <ServiceId>3</ServiceId>
</TgUserInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>