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.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
+
-
Layer 155
@@ -96,22 +69,25 @@ KeyboardButton">
text
string
-
+Button text
button_id
int
-
+Button ID, to be passed to messages.sendBotRequestedPeer.
peer_type
RequestPeerType
-
+Filtering criteria to use for the peer selection list shown to the user.
Type
-
+
+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
+
-
Layer 155
@@ -95,27 +74,30 @@ flags.3?Bool…">
creator
flags.0?true
-
+Whether to allow only choosing channels that were created by the current user.
has_username
flags.3?Bool
-
+If specified, allows only choosing channels with or without a username, according to the value of Bool.
user_admin_rights
flags.1?ChatAdminRights
-
+If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights.
bot_admin_rights
flags.2?ChatAdminRights
-
+If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights.
Type
-
+
+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
+
-
Layer 155
@@ -95,17 +74,17 @@ flags.5?true…">
creator
flags.0?true
-
+Whether to allow only choosing chats or supergroups that were created by the current user.
bot_participant
flags.5?true
-
+Whether to allow only choosing chats or supergroups where the bot is a participant.
has_username
flags.3?Bool
-
+If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool.
forum
@@ -115,17 +94,22 @@ flags.5?true…">
user_admin_rights
flags.1?ChatAdminRights
-
+If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights.
bot_admin_rights
flags.2?ChatAdminRights
-
+If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights.
Type
-
+
+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
-
+
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.
+
-
Layer 155
@@ -110,28 +77,31 @@ Updates…">
peer
InputPeer
-
+The bot that sent the keyboardButtonRequestPeer button.
msg_id
int
-
+ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button.
button_id
int
-
+The button_id
field from the keyboardButtonRequestPeer constructor.
requested_peer
InputPeer
-
+The chosen peer.
Result
-Bots can use this method
+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.
-
@@ -69,15 +69,15 @@
requestPeerTypeUser
-
+Choose a user.
requestPeerTypeChat
-
+Choose a chat or supergroup
requestPeerTypeBroadcast
-
+Choose a channel
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.