KeyboardButtonRequestPoll#
- class pyrogram.raw.types.KeyboardButtonRequestPoll#
Button to request a poll from the user Available only in private chats, in reply keyboards. When pressed, clients prompt the user to create and send a poll, replying to the message that attached the replyKeyboardMarkup. If quiz is set, the prompt must create a quiz poll.
Constructor of
KeyboardButton.- Details:
Layer:
227ID:
7A11D782
- Parameters:
text (
str) – Button textstyle (
KeyboardButtonStyle, optional) – Button style, see here » for more info on button styles.quiz (
bool, optional) – If set, only quiz polls can be sent
- Functions:
This object can be returned by 1 function.
Fetch the peer request button a bot prepared for a Mini App with bots.requestWebViewButton, invoked when the Mini App emits a web_app_request_chat event, see here for more info.