How sousou15/bot works
This is a Spanish-language Telegram bot that recommends movies based on a user’s mood. Telegram messages enter through polling and command handling; ordinary text is classified by a subprocess running the VADER-based sentiment script, then the bot queries TMDb and sends recommendations, including available trailers, back to the chat. The tree also contains alternative sentiment scripts and an update-clearing utility, but the shown runtime does not invoke them. Relationships below are based on the excerpts; no README documentation was provided.
Main entry points: bot.py Command and message handling · sentiments3.py VADER mood classifier
Components 11
Telegram interaction
- Update polling
bot.py - Command and message handling
bot.py
Mood classification
- Sentiment subprocess
bot.py - VADER mood classifier
sentiments3.py
Movie recommendations
- TMDb movie discovery
bot.py - Movie and trailer details
bot.py - Recommendation formatting and reply
bot.py
Other components
- Telegram user
- Telegram API
- Google Translate
- TMDb API
Connections 17
- Telegram user → Telegram API: sends messages
- Update polling → Telegram API: polls updates
bot.py - Telegram API → Update polling: returns updates
bot.py - Update polling → Command and message handling: routes messages
bot.py - Command and message handling → Telegram API: sends replies
bot.py - Command and message handling → Sentiment subprocess: runs subprocess
bot.py - Sentiment subprocess → VADER mood classifier: passes text
bot.py - VADER mood classifier → Google Translate: translates text
sentiments3.py - VADER mood classifier → Sentiment subprocess: prints mood
sentiments3.py - Command and message handling → TMDb movie discovery: uses mood
bot.py - TMDb movie discovery → TMDb API: requests movies
bot.py - TMDb movie discovery → Movie and trailer details: gets movie results
bot.py - Movie and trailer details → TMDb API: requests videos
bot.py - TMDb movie discovery → Recommendation formatting and reply: formats results
bot.py - Movie and trailer details → Recommendation formatting and reply: adds trailers
bot.py - Recommendation formatting and reply → Telegram API: sends recommendations
bot.py - Telegram API → Telegram user: delivers replies