Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

channels.createChannel

Create a supergroup/channel.

Create a [supergroup/channel](https://core.telegram.org/api/channel.md).

NameTypeRequiredDescription
broadcasttrueNoWhether to create a [channel](https://core.telegram.org/api/channel.md)
megagrouptrueNoWhether to create a [supergroup](https://core.telegram.org/api/channel.md)
for_importtrueNoWhether the supergroup is being created to import messages from a foreign chat service using [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md)
forumtrueNoWhether to create a [forum](https://core.telegram.org/api/forum.md)
titlestringYesChannel title
aboutstringYesChannel description
geo_pointInputGeoPointNoGeogroup location, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups.
addressstringNoGeogroup address, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups.
ttl_periodintNoTime-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md) to edit this value later.

Responses

Updates

MTProto RPC

  • 400 · ADDRESS_INVALID — The specified geopoint address is invalid.
  • 400 · CHANNELS_ADMIN_LOCATED_TOO_MUCH — The user has reached the limit of public geogroups.
  • 400 · CHANNELS_TOO_MUCH — You have joined too many channels/supergroups.
  • 400 · CHAT_ABOUT_TOO_LONG — Chat about too long.
  • 500 · CHAT_INVALID — Invalid chat.
  • 400 · CHAT_TITLE_EMPTY — No chat title provided.
  • 400 · TTL_PERIOD_INVALID — The specified TTL period is invalid.
  • 406 · USER_RESTRICTED — You're spamreported, you can't create channels or chats.

Telegram documentation ↗

Пользователи users.getFullUser
POST users.getFullUser

Получить подробный профиль пользователя

Возвращает расширенные сведения о пользователе. В ответе могут быть описание профиля и связанные пользователи или чаты.

ПользователиTL: users.getFullUserДоступен пользователям и ботам

Параметры запроса

Параметр
id
Тип
InputUser
Обязательный
Да
Описание
Пользователь, сведения о котором нужно получить.
Тип InputUser

Указывает пользователя для дальнейшего взаимодействия.

КонструкторПоляОписание
inputUseruser_id: longID пользователяaccess_hash: longЗначение access_hash из конструктора userУказывает пользователя для дальнейшего взаимодействия.
inputUserSelf—Текущий пользователь
inputUserFromMessagepeer: InputPeerЧат, в котором встретился пользовательmsg_id: intID сообщенияuser_id: longID пользователяПользователь с признаком min из конкретного сообщения чата
inputUserEmpty—Пустой конструктор, который не указывает пользователя

Авторизация Telegram

Сессия хранится в этой вкладке. Запрос выполняется напрямую к Telegram.