How maxxsalov/bot_sanya works
This is a small Telegram joke bot. A user sends /start to receive a welcome sticker and message, or sends text to trigger a meme response. The bot selects a numbered image from mem/ and sends it through Telegram. The text condition in bot.py is always truthy because it includes the nonempty string 'саня', so the fallback message is unreachable. Evidence is limited to the README and the sampled bot.py and config.py.
Main entry points: bot.py Bot polling · config.py Bot token · static Welcome sticker · mem Meme images
Components 8
Other components
- Telegram user
- Bot polling
bot.py - Start handler
bot.py - Text handler
bot.py - Bot token
config.py - Welcome sticker
static - Meme images
mem - Telegram API
Connections 9
- Bot polling → Bot token: reads token
bot.py - Bot polling → Telegram API: polls updates
bot.py - Telegram user → Bot polling: sends messages
bot.py - Bot polling → Start handler: dispatches /start
bot.py - Bot polling → Text handler: dispatches text
bot.py - Start handler → Welcome sticker: reads sticker
bot.py - Start handler → Telegram API: sends welcome
bot.py - Text handler → Meme images: reads selected image
bot.py - Text handler → Telegram API: sends photo
bot.py