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 Markup¶

class bale.MenuKeyboardMarkup¶

Bases: BaseReplyMarkup

Examples

Components Bot

add(keyboard_button, row=None)¶

Add a Menu Keyboard button to keyboards.

Parameters:
  • keyboard_button (bale.MenuKeyboardButton) – The menu keyboard button.

  • row (Optional[int]) –

    The row where you want the button to be placed.

    Warning

    Your numbers in the “row” param must be natural and greater than 0.

remove(item)¶

Remove a Reply Markup item from keyboards.

Parameters:

item (bale.ReplyMarkupItem) – The reply markup item.

remove_row(row)¶

Remove a row along with the menu keyboards located in that row.

Parameters:

row (int) –

The row.

Warning

Your numbers in the “row” param must be natural and greater than 0.

Next
Reply Markup Item
Previous
Inline Keyboard Markup
Copyright © 2020-Present, Kian Ahmadian
Made with Sphinx and @pradyunsg's Furo
On this page
  • Menu Keyboard Markup
    • MenuKeyboardMarkup
      • MenuKeyboardMarkup.add()
      • MenuKeyboardMarkup.remove()
      • MenuKeyboardMarkup.remove_row()