Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

messages.setGameScore

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

NameTypErforderlichBeschreibung
edit_messagetrueNeinSet this flag if the game message should be automatically edited to include the current scoreboard
forcetrueNeinSet this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
peerInputPeerJaUnique identifier of target chat
idintJaIdentifier of the sent message
user_idInputUserJaBenutzerkennung
scoreintJaNew score

Antworten

Updates

MTProto RPC

  • 400 · BOT_SCORE_NOT_MODIFIED — Die Punktzahl wurde nicht geändert.
  • 400 · MESSAGE_ID_INVALID – Die angegebene Nachrichten-ID ist ungültig.
  • 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
  • 400 · SCORE_INVALID – Der angegebene Spielstand ist ungültig.
  • 400 · USER_BOT_REQUIRED — Diese Methode kann nur von einem Bot aufgerufen werden.

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.