Skip to content

Bots

flowtask.services.bots

telegram

TelegramBot

TelegramBot(bot_token=None, **kwargs)

Bases: ABC

Telegram bot.

This class is a wrapper for the aiogram.Bot class, it provides a simple way to create new Telegram Bots.

Parameters:

Name Type Description Default
bot_token str

Telegram Bot Token.

None
get_arguments
get_arguments(message, command)

Get the arguments passed after the command (e.g., after /echo).

run_in_thread async
run_in_thread(fn, *args, executor=None, **kwargs)

_execute.

Returns a future to be executed into a Thread Pool.