Contents Menu Expand Light mode Dark mode Auto light/dark mode
برای دریافت اطلاعات بیشتر به سایت کتابخانه مراجعه نمایید
python-bale-bot v2.5.0
Logo

Reference

  • bale package
    • Bot
    • Available Types
      • Update
      • Message
      • Chat
      • Chat Member
      • Chat Photo
      • User
      • Callback Query
      • Sticker
    • UI
      • Inline Keyboard Markup
      • Menu Keyboard Markup
      • Reply Markup Item
      • Inline Keyboard Button
      • Menu Keyboard Button
    • Payments
      • Invoice
      • Labeled Price
      • Successful Payment
    • Attachments
      • Audio
      • Contact
      • Document
      • Base File
      • Input File
      • Location
      • Photo Size
      • Video
      • Animation
  • Helpers
  • Event Reference

Project

  • ChangeLog
  • Examples
  • Website
  • GitHub Repository
Back to top
Edit this page

Menu Keyboard Button¶

class bale.MenuKeyboardButton(text, *, request_contact=False, request_location=False)¶

Bases: object

This object shows a Keyboard Button

text¶

Keyboard Text.

Type:

str

request_contact¶

If True, the user’s phone number will be sent as a contact when the button is pressed.

Type:

Optional[bool]

request_location¶

If True, the user’s current location will be sent when the button is pressed. Available in private chats only.

Type:

Optional[bool]

Next
Payments
Previous
Inline Keyboard Button
Copyright © 2020-Present, Kian Ahmadian
Made with Sphinx and @pradyunsg's Furo
On this page
  • Menu Keyboard Button
    • MenuKeyboardButton
      • MenuKeyboardButton.text
      • MenuKeyboardButton.request_contact
      • MenuKeyboardButton.request_location