GeezerVison is showing core.telegram.org — bots.requestWebViewButton
Machine-readable version of this page: /method/bots.requestWebViewButton.md.
bots.requestWebViewButton
Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.
-
Layer 225
- 1 – Base layer
- 2 – New userpic notifications
- 3 – Send message can trigger link change
- 4 – Check-in chats
- 5 – Localized SMS, localized notifications
- 6 – Foursquare integration
- 7 – Added wallPaperSolid
- 8 – Added end-to-end encryption
- 9 – Improved big files upload perfomance
- 10 – Improved chat participants updates
- 11 – Improved secret chats
- 12 – New dynamic support
- 13 – Audio, video MIME; contacts import retry; new secret actions
- 14 – Notify settings sync, blacklist sync
- 15 – Modified getHistory offset behaviour
- 16 – Split sendCode into 2 parts
- 17 – Added custom typing, introduced message flags
- 18 – Added usernames
- 23 – Stickers for secret chats
- 105 – Scheduled messages, Cloud themes
- 108 – Login with QR code
- 109 – Polls v2
- 110 – People Nearby 2.0, Bank card entity
- 111 – Folders, Broadcast Stats
- 112 – Old featured stickers, generic dice, poll timer, poll solution
- 113 – PSA
- 114 – Video thumbs for GIFs
- 115 – Peek Channel Invite
- 116 – Group Stats, Profile Videos
- 117 – WebRTC Phone Calls
- 118 – Callback with 2FA, Countries list
- 119 – Comments in channels, Threads, Anonymous Admins
- 120 – Multipins, Message Stats, GeoLive v2
- 121 – SVG-based Outlines for Stickers
- 122 – Voice Chats
- 123 – Voice Chat improvements
- 124 – Expiring Invite links
- 125 – Voice Chats in Broadcasts
- 126 – Ban channels in channels
- 127 – Payments in channels
- 128 – Microthumbs for User/Chat profile photos
- 129 – Video Chats
- 130 – Custom placeholder for bot reply keyboards
- 131 – Reset 2FA Password after a week
- 132 – Chat themes
- 133 – 64-bit IDs for User/Chat
- 134 – Chat Requests, Shared Media Calendar
- 135 – Send Message As a Channel
- 136 – Reactions
- 137 – Translations
- 138 – GIF Sticker Packs
- 139 – RTMP streaming
- 140 – WebApps, Cloud Ringtones
- 142 – TCP Reflectors
- 143 – Premium Subscription, Cloud Invoices
- 144 – Premium as a Gift, Custom Emoji
- 145 – Custom Reactions, Statuses, Sign In with email
- 147 – Keywords for stickers and emojis
- 148 – Forums, collectible usernames
- 150 – Pinned forum topics, general topic
- 151 – Media spoilers, suggested profile photos
- 152 – Real-time translations, Firebase SMS authentication
- 153 – Modify created stickersets
- 155 – Dates for reactions
- 158 – Shared folders, per-chat wallpapers
- 159 – Anonymous votes
- 160 – Stories
- 164 – Stories in Channels
- 166 – Giveaways in channels
- 167 – Similar channels
- 168 – Channel colors
- 169 – Multiselection of chats for bots
- 170 – Saved Messages 2.0
- 171 – Saved Messages 2.0
- 174 – Group boosts
- 176 – Business
- 177 – Business Bots, Birthdays
- 178 – Saved Personal channel, Reactions notifications
- 179 – Channel revenue stats, phrases in SMS
- 180 – Message Effects, Hashtags
- 181 – Stars
- 182 – Stars Revenue
- 183 – Paid posts
- 184 – Stars Refunds
- 185 – MiniApp Store, Star Gifts
- 186 – Channel Subscriptions for Stars
- 187 – Stars Giveaways
- 189 – Stars Gifts
- 192 – Video Qualities, Ads in bots
- 194 – Stars Subscription for Bots
- 195 – Affiliate Programs for Bots
- 196 – Collectible gifts
- 197 – Similar Bots
- 198 – Collectibles as emoji statuses
- 200 – Paid Messages
- 202 – Conference calls
- 203 – Resell collectible gifts
- 204 – Monoforums
- 205 – TODO lists
- 207 – Suggested channel posts
- 210 – Star gift collections, rating
- 211 – Story Albums
- 212 – Prepaid gift upgrades
- 213 – Music in profile
- 214 – Chat Themes with collectible gifts
- 215 – Chat Gift Themes
- 216 – Threaded view for Bots
- 217 – Live Stories
- 218 – Gift Auctions
- 219 – Passkeys
- 220 – Gift Offers
- 222 – Gift Crafts
- 223 – User tags in groups
- 224 – AI Editor, Live photos
- 225 – Guest mode, Custom AI compose tones
- More...
bots.requestedButton#f13bbcd7 webapp_req_id:string = bots.RequestedButton;
---functions---
bots.requestWebViewButton#31a2a35e user_id:InputUser button:KeyboardButton = bots.RequestedButton;
Parameters
Result
bots.RequestedButton
Only bots can use this method
Possible errors
| Code |
Type |
Description |
| 400 |
BUTTON_INVALID |
The specified button is invalid. |
| 400 |
USER_BOT_REQUIRED |
This method can only be called by a bot. |
| 400 |
USER_ID_INVALID |
The provided user ID is invalid. |
Related pages
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.
Use this constructor to send a keyboardButtonRequestPeer button in a reply keyboard in a private chat.
See peer requests for the full flow.
Filtering criteria to use for the peer selection list shown to the user.
Bots can offer users interactive HTML5 web apps to completely replace any website.
Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.
Telegram
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.
|