Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

photos.uploadContactProfilePhoto

Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.

NameTypErforderlichBeschreibung
suggesttrueNeinIf set, will send a [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) service message to `user_id`, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user).
savetrueNeinIf set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply delete the [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) service message with [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md)).
user_idInputUserJaThe contact
fileInputFileNeinProfile photo
videoInputFileNein[Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video
video_start_tsdoubleNeinFließkomma UNIX Zeitstempel in Sekunden, der den Frame des Videos/Stickers angibt, der als statische Vorschau verwendet werden soll; kann nur verwendet werden, wenn `video` oder `video_emoji_markup` eingestellt ist.
video_emoji_markupVideoSizeNeinAnimiertes Sticker-Profilbild, muss entweder einen [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md)- oder einen [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)]-Konstruktor enthalten.

Antworten

photos.Photo

MTProto RPC

  • 400 · CONTACT_MISSING – Der angegebene Benutzer ist kein Kontakt.
  • 400 · NEED_ACTION_MISSING – Der Anrufer hat keine gültige Aktion (entweder Speichern oder Vorschlagen) für das Hochladen des Kontaktprofilfotos angegeben.
  • 400 · USER_ID_INVALID – Die angegebene Benutzer-ID ist ungültig.

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.