Bot documentation¶
Theese docs are impossible to generate because of bot decorators
- async greet_threshhold(message: telebot.types.Message) None¶
Greet a new user and specify all commands
After starting a bot, display this help message.
- Parameters
message (telebot.types.Message) – Telegram message(its content is not relevant)
- async poll_threshhold(message: telebot.types.Message) None¶
Write the prompt to enter threshhold, set state to recieving the answer.
- Parameters
message (telebot.types.Message) – Telegram message(its content is not relevant). Then, state is set to adding_apy.
- async register_user(message)¶
Add user to state backend.
- Parameters
message (telebot.types.Message) – Telegram message(its content consists of the threshold parameter). Then, state is set to naming_notifier.
- async name_notifier(message: telebot.types.Message) None¶
Set the name of the notifier.
- Parameters
message (telebot.types.Message) – Telegram message(its content consists of the name of the notifier). Then, state is set to monitoring_state.
- async list_notifiers(message: telebot.types.Message) None¶
List all notifiers for a user.
- Parameters
message (telebot.types.Message) – Telegram message(its content is not relevant). Then, state is set to monitoring_state.
- async run_notifications() None¶
Query the Anchor API and go through users to send if APY drops.
- async scheduler_process() None¶
Routine to query notifications-wait an hour-repeat.
- async main() None¶
Gather all needed tasks in bot loop.