Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

stories.canSendStory

Check whether we can post stories as the specified peer.

NameTypeRequiredDescription
peerInputPeerYesThe peer from which we wish to post stories.

Responses

stories.CanSendStoryCount

MTProto RPC

  • 400 · BOOSTS_REQUIRED — The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost.md) in order to perform this action.
  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · PREMIUM_ACCOUNT_REQUIRED — A premium account is required to execute this action.
  • 400 · STORIES_TOO_MUCH — You have hit the maximum active stories limit as specified by the [story_expiring_limit_* client configuration parameters](https://core.telegram.org/api/config.md#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium.md) subscription, delete an active story, or wait for the oldest story to expire.
  • 400 · STORY_SEND_FLOOD_MONTHLY_%d — You've hit the monthly story limit as specified by the [stories_sent_monthly_limit_* client configuration parameters](https://core.telegram.org/api/config.md#stories-sent-monthly-limit-default): wait %d seconds before posting a new story.
  • 400 · STORY_SEND_FLOOD_WEEKLY_%d — You've hit the weekly story limit as specified by the [stories_sent_weekly_limit_* client configuration parameters](https://core.telegram.org/api/config.md#stories-sent-weekly-limit-default): wait for %d seconds before posting a new story.

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.