bot Module#
Methods for the bot functionality.
- async bot.answer_postponed_reminder(update, context)
Deletes the auxiliary reminder and posts the original one. Also asks whether to postpone it again.
- async bot.answer_reminder(update, _)
Answers a reminder and asks whether to postpone it.
- async bot.delete_message(update, _)
Deletes the message of the incoming callback query.
- async bot.error(update, context)
Informs the originator of the update that an error occurred and forwards the traceback to the admin.
- async bot.info(update, _)
Returns some info about the bot.
- bot.keyboard(update=None, message_id=None)
Builds the keyboard to append to postpone messages. Exactly one of the optionals mey be passed.
- Parameters:
- Return type:
- async bot.register_application(application)
Adds handlers and sets up jobs. Convenience method to avoid doing that all in the main script.
- Parameters:
application (
Application
) – Thetelegram.ext.Dispatcher
.- Return type: