diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index c7711b3e1a..225c1fc013 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -270,6 +270,13 @@
  • Replace single stickers in stickersets »
  • Fetch all stickersets owned by the current account »
  • A refactored and improved channel/supergroup/group invitation flow »
  • +
  • Improvements for keyboardButtonRequestPeer.
    +Now bots will also receive the selected peer's name, username, photo (if present and requested by the new bot-side inputKeyboardButtonRequestPeer button).
    +Previously, just the peer's ID was sent, which could only be used to fetch the name/photo if the bot had already previously cached the peer's access hash ». +
  • Schema changes

    New Methods
    diff --git a/data/web/corefork.telegram.org/api/peers.html b/data/web/corefork.telegram.org/api/peers.html index e03fe01c13..f1cffa3411 100644 --- a/data/web/corefork.telegram.org/api/peers.html +++ b/data/web/corefork.telegram.org/api/peers.html @@ -2,12 +2,12 @@ - Peers + Peer database - - + + - + @@ -39,8 +39,8 @@
    - -

    Peers

    + +

    Peer database

    @@ -148,6 +148,7 @@ Info about these IDs may be fetched with the zero access hash even by users.

    Do not manually refresh peer information in any other case, to avoid overloading the server by continuously requesting changes for the same unchanged information.

    +

    Note: some other, non-peer-related constructors (i.e. not user, chat or channel) may also contain access hashes, which should be stored in a different database.

    Peer ID

    The peer id is a unique 64-bit ID used to identify a specific user, chat or channel.

    This field should be used as primary key in the channel, chat and user databases.

    diff --git a/data/web/corefork.telegram.org/api/qr-login.html b/data/web/corefork.telegram.org/api/qr-login.html index d7115dcfb2..3395abdc6e 100644 --- a/data/web/corefork.telegram.org/api/qr-login.html +++ b/data/web/corefork.telegram.org/api/qr-login.html @@ -69,7 +69,7 @@ After the expiration of the current QR code, the base64url-decoded before using it in the method.

    Possible errors returned by the method are:

      -
    • 400 - AUTH_TOKEN_INVALID, an invalid authorization token was provided
    • +
    • 400 - AUTH_TOKEN_INVALID, AUTH_TOKEN_INVALID1, an invalid authorization token was provided
    • 400 - AUTH_TOKEN_EXPIRED, the provided authorization token has expired and the updated QR-code must be re-scanned
    • 400 - AUTH_TOKEN_ALREADY_ACCEPTED, the authorization token was already used