Module telereddit.telereddit
Entrypoint module.
Handles configuration, setup and starting of the bot, as well as receive messages and dispatch actions to the other modules.
Functions
def on_chat_message(update: telegram.update.Update, context: telegram.ext.callbackcontext.CallbackContext) ‑> NoneType
-
Entrypoint of the bot's logic. Handles a single update message.
Parameters
update
:Update
- The Update object provided by python-telegram-bot
context
:CallbackContext
- The Context object provided by python-telegram-bot
def on_callback_query(update: telegram.update.Update, context: telegram.ext.callbackcontext.CallbackContext) ‑> NoneType
-
Handle all the several types of callback queries.
(actions initiated from a keyboard).
Parameters
update
:Update
- The Update object provided by python-telegram-bot
context
:CallbackContext
- The Context object provided by python-telegram-bot
def init() ‑> str
-
Init environment variables and services.
def main() ‑> NoneType
-
Entrypoint of telereddit. Handles configuration, setup and start of the bot.