How stalin191020/ddg-tempmail-bot works
This repository implements a Telegram temporary-email and OTP bot. The primary workflow is a user requesting an alias, the bot obtaining one from DuckDuckGo or generating a Gmail dot alias, and an IMAP poller matching incoming mail to active aliases, saving messages and notifying users. The README provides no capability detail, so the graph relies on the shown source and its module references; unshown bot features are represented only where excerpts establish them.
Main entry points: bot.py Bot handlers · database.py Database access · imap_worker.py IMAP poller · ddg_client.py Alias generation
Components 12
Telegram bot
- Bot handlers
bot.py
Alias services
- Alias generation
ddg_client.py
Mail processing
- IMAP poller
imap_worker.py
Persistent state
- Database access
database.py - SQLite state
database.py
AI assistance
- AI client
ai_helper.py
Other components
- Telegram user
- Telegram platform
- DuckDuckGo Email
- Gmail base config
- IMAP mailbox
- Telegram log channel
Connections 18
- Telegram user → Telegram platform: sends requests
- Telegram platform → Bot handlers: dispatches updates
bot.py - Bot handlers → Telegram platform: replies
bot.py - Bot handlers → Alias generation: requests aliases
bot.py - Alias generation → DuckDuckGo Email: creates aliases
ddg_client.py - Alias generation → Gmail base config: reads bases
ddg_client.py - Bot handlers → Database access: checks quota
bot.py - Bot handlers → Database access: stores aliases
bot.py - Database access → SQLite state: reads and writes
database.py - IMAP mailbox → IMAP poller: provides messages
- IMAP poller → Database access: loads aliases
imap_worker.py - IMAP poller → Database access: stores mail
imap_worker.py - IMAP poller → AI client: analyzes email
imap_worker.py - IMAP poller → Telegram platform: notifies users
imap_worker.py - IMAP poller → Telegram log channel: sends audit logs
imap_worker.py - Bot handlers → Database access: reads inbox
bot.py - Bot handlers → Alias generation: deletes aliases
bot.py - Bot handlers → Database access: manages plans
bot.py