Telegram Handler
Telegram bot handler.
- class folderbot.telegram_handler.TelegramBot[source]
Bases:
objectMain Telegram bot class.
- async handle_message(update, context)[source]
Handle regular messages with immediate processing and restart on new message.
- async handle_photo(update, context)[source]
Handle photo uploads: save to uploads and process with LLM vision.
- async handle_voice(update, context)[source]
Handle voice messages and audio files by transcribing and processing as text.
- async wait_for_processing(user_id)[source]
Wait for any pending processing to complete. For testing.
- ASK_USER_TIMEOUT_SECONDS = 120