diff --git a/data/web/corefork.telegram.org/api/bots/buttons.html b/data/web/corefork.telegram.org/api/bots/buttons.html index 87bfc3568d..719efccd32 100644 --- a/data/web/corefork.telegram.org/api/bots/buttons.html +++ b/data/web/corefork.telegram.org/api/bots/buttons.html @@ -59,6 +59,7 @@ This article describes the full button flow, using the MTProto API.

keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton; inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton; keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton; +keyboardButtonRequestPeer#0d0b468c text:string button_id:int peer_type:RequestPeerType = KeyboardButton; keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow; @@ -80,7 +81,17 @@ This article describes the full button flow, using the MTProto API.

  • replyInlineMarkup - Attaches an inline keyboard to the message, allowing users to send callback data to the bot without sending actual messages to the current chat.
  • Pressing buttons

    -
    keyboardButton#a2fa4880 text:string = KeyboardButton;
    +
    requestPeerTypeUser#5f3b8a00 flags:# bot:flags.0?Bool premium:flags.1?Bool = RequestPeerType;
    +requestPeerTypeChat#c9f06e1b flags:# creator:flags.0?true bot_participant:flags.5?true has_username:flags.3?Bool forum:flags.4?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerType;
    +requestPeerTypeBroadcast#339bef6c flags:# creator:flags.0?true has_username:flags.3?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerType;
    +
    +keyboardButtonRequestPeer#0d0b468c text:string button_id:int peer_type:RequestPeerType = KeyboardButton;
    +
    +messages.sendBotRequestedPeer#fe38d01b peer:InputPeer msg_id:int button_id:int requested_peer:InputPeer = Updates;
    +
    +messageActionRequestedPeer#fe77345d button_id:int peer:Peer = MessageAction;
    +
    +keyboardButton#a2fa4880 text:string = KeyboardButton;
     keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton;
     keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
     keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton;
    @@ -102,7 +113,8 @@ Each row can have a different number of columns, and user clients should properl
     
  • keyboardButton - Send a message to the chat, replying to the message that attached the reply keyboard
  • keyboardButtonRequestPhone - Only in private chats, send the current user's contact to the chat, replying to the message that attached the reply keyboard
  • keyboardButtonRequestGeoLocation - Only in private chats, send the current user's geolocation to the chat, replying to the message that attached the reply keyboard
  • -
  • keyboardButtonRequestPoll - Only in private chats, prompt the user to create and send a poll (or a quiz poll, depending on the quiz flag), replying to the message that attached the reply keyboard
  • +
  • keyboardButtonRequestPoll - Only in private chats, prompts the user to create and send a poll (or a quiz poll, depending on the quiz flag), replying to the message that attached the reply keyboard
  • +
  • keyboardButtonRequestPeer - Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer, according to the criteria specified in the RequestPeerType constructor. keyboardButtonRequestPeer.button_id must be passed to the method: the peer and the specified button_id will be received by the bot as a messageActionRequestedPeer service message.
  • Buttons available only in inline keyboards:

      diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index 1349a42baa..849c279ed3 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -150,7 +150,7 @@

      Schema changes

      New Methods
        -
      • Added messages.sendBotRequestedPeer -
      • +
      • Added messages.sendBotRequestedPeer - Send a chosen peer, as requested by a keyboardButtonRequestPeer button.
      • Added account.getDefaultProfilePhotoEmojis -
      • Added account.getDefaultGroupPhotoEmojis -
      • Added auth.requestFirebaseSms -
      • @@ -173,10 +173,10 @@
        • Added auth.sentCodeSuccess -
        • Added messageActionRequestedPeer -
        • -
        • Added requestPeerTypeUser -
        • -
        • Added requestPeerTypeChat -
        • -
        • Added requestPeerTypeBroadcast -
        • -
        • Added keyboardButtonRequestPeer -
        • +
        • Added requestPeerTypeUser - Choose a user.
        • +
        • Added requestPeerTypeChat - Choose a chat or supergroup
        • +
        • Added requestPeerTypeBroadcast - Choose a channel
        • +
        • Added keyboardButtonRequestPeer - Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer
        • Added emojiListNotModified -
        • Added emojiList -
        • Added auth.sentCodeTypeFirebaseSms -
        • diff --git a/data/web/corefork.telegram.org/constructor/keyboardButtonRequestPeer.html b/data/web/corefork.telegram.org/constructor/keyboardButtonRequestPeer.html index 0cc44d68a8..0a59056221 100644 --- a/data/web/corefork.telegram.org/constructor/keyboardButtonRequestPeer.html +++ b/data/web/corefork.telegram.org/constructor/keyboardButtonRequestPeer.html @@ -4,38 +4,10 @@ keyboardButtonRequestPeer - + - + @@ -70,7 +42,8 @@ KeyboardButton">

          keyboardButtonRequestPeer

          -

          +

          Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer

          +

          +

          KeyboardButton

          +

          Related pages

          +

          messages.sendBotRequestedPeer

          +

          Send a chosen peer, as requested by a keyboardButtonRequestPeer button.

          diff --git a/data/web/corefork.telegram.org/constructor/requestPeerTypeBroadcast.html b/data/web/corefork.telegram.org/constructor/requestPeerTypeBroadcast.html index e90878f760..bc2a42d86f 100644 --- a/data/web/corefork.telegram.org/constructor/requestPeerTypeBroadcast.html +++ b/data/web/corefork.telegram.org/constructor/requestPeerTypeBroadcast.html @@ -4,32 +4,10 @@ requestPeerTypeBroadcast - + - + @@ -64,7 +42,8 @@ flags.3?Bool…">

          requestPeerTypeBroadcast

          -

          +

          Choose a channel

          +

          +

          RequestPeerType

          +

          Related pages

          +

          Bool

          +

          Boolean type.

          diff --git a/data/web/corefork.telegram.org/constructor/requestPeerTypeChat.html b/data/web/corefork.telegram.org/constructor/requestPeerTypeChat.html index 5575604acd..149e499324 100644 --- a/data/web/corefork.telegram.org/constructor/requestPeerTypeChat.html +++ b/data/web/corefork.telegram.org/constructor/requestPeerTypeChat.html @@ -4,32 +4,10 @@ requestPeerTypeChat - + - + @@ -64,7 +42,8 @@ flags.5?true…">

          requestPeerTypeChat

          -

          +

          Choose a chat or supergroup

          +

          +

          RequestPeerType

          +

          Related pages

          +

          Forums

          +

          Telegram allows creating forums with multiple distinct topics.

          +

          Bool

          +

          Boolean type.

          diff --git a/data/web/corefork.telegram.org/constructor/requestPeerTypeUser.html b/data/web/corefork.telegram.org/constructor/requestPeerTypeUser.html index d0628f7394..3bac6848cc 100644 --- a/data/web/corefork.telegram.org/constructor/requestPeerTypeUser.html +++ b/data/web/corefork.telegram.org/constructor/requestPeerTypeUser.html @@ -4,36 +4,10 @@ requestPeerTypeUser - + - + @@ -68,7 +42,8 @@ Type…">

          requestPeerTypeUser

          -

          +

          Choose a user.

          +

          +

          RequestPeerType

          +

          Related pages

          +

          Telegram Premium

          diff --git a/data/web/corefork.telegram.org/method/messages.sendBotRequestedPeer b/data/web/corefork.telegram.org/method/messages.sendBotRequestedPeer index 1309507cc9..e174408209 100644 --- a/data/web/corefork.telegram.org/method/messages.sendBotRequestedPeer +++ b/data/web/corefork.telegram.org/method/messages.sendBotRequestedPeer @@ -4,44 +4,10 @@ messages.sendBotRequestedPeer - + - + @@ -76,7 +42,8 @@ Updates…">

          messages.sendBotRequestedPeer

          -

          +

          Send a chosen peer, as requested by a keyboardButtonRequestPeer button.

          +

          +

          Bots can use this method

          +

          Related pages

          +

          keyboardButtonRequestPeer

          +

          Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer

          diff --git a/data/web/corefork.telegram.org/methods.html b/data/web/corefork.telegram.org/methods.html index aa9661d967..0c213c7c55 100644 --- a/data/web/corefork.telegram.org/methods.html +++ b/data/web/corefork.telegram.org/methods.html @@ -2715,7 +2715,7 @@ messages.sendBotRequestedPeer -  +Send a chosen peer, as requested by a keyboardButtonRequestPeer button. account.getDefaultProfilePhotoEmojis diff --git a/data/web/corefork.telegram.org/type/KeyboardButton.html b/data/web/corefork.telegram.org/type/KeyboardButton.html index f1baac0d70..41096e6341 100644 --- a/data/web/corefork.telegram.org/type/KeyboardButton.html +++ b/data/web/corefork.telegram.org/type/KeyboardButton.html @@ -142,7 +142,7 @@ keyboardButtonRequestPeer -  +Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer
          diff --git a/data/web/corefork.telegram.org/type/RequestPeerType.html b/data/web/corefork.telegram.org/type/RequestPeerType.html index facb881646..8b83bf8bdd 100644 --- a/data/web/corefork.telegram.org/type/RequestPeerType.html +++ b/data/web/corefork.telegram.org/type/RequestPeerType.html @@ -4,10 +4,10 @@ RequestPeerType - + - + @@ -42,7 +42,7 @@

          RequestPeerType

          -

          Type of requested peer

          +

          Filtering criteria to use for the peer selection list shown to the user.

          diff --git a/data/web/corefork.telegram.org/type/Updates.html b/data/web/corefork.telegram.org/type/Updates.html index b2ee035be2..c121aae7f5 100644 --- a/data/web/corefork.telegram.org/type/Updates.html +++ b/data/web/corefork.telegram.org/type/Updates.html @@ -537,7 +537,7 @@ messages.sendBotRequestedPeer -  +Send a chosen peer, as requested by a keyboardButtonRequestPeer button.