vamo_telbot.config.telegram¶
Telegram Bot configuration.
Handles loading and saving the Bot configuration and secrets.
Attributes¶
Functions¶
Load the telegram API ID from the configuration file. |
|
|
Persist the API ID into the configuration file. |
Load the telegram API HASH from the configuration file. |
|
|
Persist the API HASH into the configuration file. |
Load the telegram Bot Token from the configuration file. |
|
|
Persist the Bot Token into the configuration file. |
Module Contents¶
- vamo_telbot.config.telegram.load_api_id()¶
Load the telegram API ID from the configuration file.
- Returns:
The stored API ID if present, otherwise
ID_NOT_SET.- Return type:
- vamo_telbot.config.telegram.save_api_id(api_id)¶
Persist the API ID into the configuration file.
- Parameters:
api_id (int) – API ID to store.
- Return type:
None
- vamo_telbot.config.telegram.load_api_hash()¶
Load the telegram API HASH from the configuration file.
- Returns:
The stored API HASH if present, otherwise
HASH_OR_TOKEN_NOT_SET.- Return type:
- vamo_telbot.config.telegram.save_api_hash(api_hash)¶
Persist the API HASH into the configuration file.
- Parameters:
api_hash (str) – API HASH to store.
- Return type:
None
- vamo_telbot.config.telegram.load_bot_token()¶
Load the telegram Bot Token from the configuration file.
- Returns:
The stored Bot Token if present, otherwise
HASH_OR_TOKEN_NOT_SET.- Return type: