Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

messages.sendPaidReaction

Sends one or more paid Telegram Star reactions », transferring Telegram Stars » to a channel's balance.

Sends one or more [paid Telegram Star reactions »](https://core.telegram.org/api/reactions.md#paid-reactions), transferring [Telegram Stars »](https://core.telegram.org/api/stars.md) to a channel's balance.

NameTypErforderlichBeschreibung
peerInputPeerJaThe channel
msg_idintJaThe message to react to
countintJaThe number of [stars](https://core.telegram.org/api/stars.md) to send (each will increment the reaction counter by one).
random_idlongJaUnique client message ID required to prevent message resending. **Note**: this argument **must** be composed of a 64-bit integer where the lower 32 bits are random, and the higher 32 bits **are equal to the current unixtime**, i.e. `uint64_t random_id = (time() << 32). See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.
privatePaidReactionPrivacyNeinEach post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy. Not populating this field will use the default reaction privacy, stored on the server and synced to clients using [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) (see [here](https://core.telegram.org/api/reactions.md#paid-reaction-privacy) for more info).

Antworten

Updates

MTProto RPC

  • 400 · BALANCE_TOO_LOW – Die Transaktion kann nicht abgeschlossen werden, da das aktuelle [Telegram Stars-Guthaben](https://core.telegram.org/api/stars.md) zu niedrig ist.
  • 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
  • 400 · CHANNEL_PRIVATE — Du bist diesem Kanal/dieser Supergruppe nicht beigetreten.
  • 403 · CHAT_WRITE_FORBIDDEN — Sie können in diesem Chat nicht schreiben.
  • 400 · MESSAGE_ID_INVALID – Die angegebene Nachrichten-ID ist ungültig.
  • 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
  • 400 · RANDOM_ID_EMPTY – Zufällige ID leer.
  • 400 · RANDOM_ID_EXPIRED – Die angegebene random_id war abgelaufen (höchstwahrscheinlich entsprach sie nicht dem erforderlichen uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t())-Format oder die angegebene Zeit liegt zu weit in der Vergangenheit).
  • 400 · REACTIONS_COUNT_INVALID — Die angegebene Anzahl von Reaktionen ist ungültig.
  • 400 · SEND_AS_PEER_INVALID – Sie können als angegebener Peer keine Nachrichten senden.

Telegrammdokumentation ↗

Пользователи 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.