twtb.logic.telegram.config#

Module for Telegram-relative settings.

Module Contents#

Classes#

ClientOrBotSection

Base class for client and bot sections.

ClientSection

Config for client specific settings.

BotSection

Config for bot specific settings.

TelegramConfigSection

Config for telegram specific settings.

class ClientOrBotSection[source]#

Bases: abc.ABC

Base class for client and bot sections.

api_id: int = ???[source]#
api_hash: str = ???[source]#
class ClientSection[source]#

Bases: ClientOrBotSection

Config for client specific settings.

phone: str = ???[source]#
password: str | None[source]#
class BotSection[source]#

Bases: ClientOrBotSection

Config for bot specific settings.

bot_token: str = ???[source]#
class TelegramConfigSection[source]#

Config for telegram specific settings.

client: ClientSection[source]#
bot: BotSection[source]#