Help button functions
- telegram_bot_discussion.ext.button.change_button_at_keyboard.change_button_at_keyboard(where, change_from_button, change_to_button, coder, full_scan=False)[source]
Help function to find and change change_from_button-button in InlineKeyboardMarkup to other or delete it, if change_to_button is None.
- Parameters:
full_scan (bool) – If True it scan all buttons, if False (default) replace first only.
where (InlineKeyboardMarkup)
change_from_button (Button)
change_to_button (Button | None)
coder (CoderInterface)
- Return type:
InlineKeyboardMarkup