Registers a handler for inline button clicks (callback_query).
String or regular expression to check callback_data
Functions that will be executed on a match
Registers a handler for a specific command (or an array of commands).
Command name without the slash (e.g., 'start' or ['start', 'help'])
Functions that will be executed if the command matches
Main menu middleware
Registers a handler that will trigger under certain conditions (update type, presence of a field or entity).
Field name or array of names (e.g., 'photo', 'document', 'callback_query')
Handler functions that will be executed on a match
Add a page to the menu
Unique page ID
Function that returns text and keyboard
Optionaloptions: MenuPageOptionsPage settings (e.g., Back button)
Adds a general handler or an ENTIRE MODULE (another Composer).
StaticcomposeMagic engine: collects an array of middlewares into a single execution chain. When one middleware calls next(), this function triggers the next one.
Class for creating interactive Inline menus.