Multi-Service Telegram Bot for Bodrum
Integrated Telegram bot delivering essential local information services for Bodrum residents
Technologies
Twelve Data (Stock Market API) WeatherAPI.com AgentQL RapidAPI Platform n8n Automation Platform Telegram Bot API
Overview
A sophisticated Telegram bot that serves as a one-stop information hub for Bodrum residents and visitors. The bot provides real-time access to critical local information including stock market data, weather conditions, local news, and on-duty pharmacy locations. Built on the n8n automation platform, it leverages multiple APIs to deliver accurate and timely information.
Tech Stack
- n8n: Core automation platform
- Telegram Bot API: Message handling and user interaction
- Twelve Data API: Real-time financial data
- WeatherAPI.com: Weather information services
- AgentQL: Web scraping for local content
Technologies
- Node.js: >=14.0.0
- n8n: ^1.19.0
- Telegram Bot API: ^6.7.0
- Twelve Data API: Latest REST API
- WeatherAPI.com: v1
- AgentQL: ^2.0.0
- Express.js: ^4.18.2
- Axios: ^1.6.2
- Winston: ^3.11.0 (for logging)
- Node-cron: ^3.0.3 (for scheduling)
- Dotenv: ^16.3.1 (for environment variables)
Key Features
Stock Market Updates (/stock
)
- Real-time Turkish stock market price tracking
- Instant price change notifications
- Customizable stock watchlists
Weather Information (/hava
)
- Current weather conditions for Bodrum
- Detailed metrics: temperature, wind speed, humidity
- Daily sunrise/sunset timings
- Weather forecasts
Local News Feed (/haber
)
- Real-time Bodrum news updates
- Automated content aggregation
- Category-based news filtering
Pharmacy Finder (/eczane
)
- Daily updated on-duty pharmacy listings
- Location-based pharmacy search
- Operating hours information
Technical Architecture
Command System
- Event-driven architecture
- Command-based triggers
- Multi-threaded request handling
- Efficient response times (0.021s - 45.116s)
Data Processing
- Multi-node workflow system
- Parallel data fetching
- Automated data validation
- Cache management
Automation
- Minute-based execution cycles
- Automated error handling
- Self-healing mechanisms
- Performance monitoring
API Integration Details
Financial Data (Twelve Data)
- Real-time stock price fetching
- Market indicators processing
- Historical data analysis
Weather Services (WeatherAPI.com)
- Current conditions monitoring
- Forecast data processing
- Weather alerts integration
Content Scraping (AgentQL)
- Automated news aggregation
- Content classification
- Data normalization
Messaging (Telegram)
- Bi-directional communication
- Media handling
- Interactive command processing
Performance Metrics
- Average response time: 0.021s
- Peak response time: 45.116s
- Daily active users: 500+
- Commands processed/day: 10,000+
Usage
Click the image above or visit @ebartan_bot on Telegram to start using the bot. Available commands:
/stock
- Get real-time stock prices/hava
- Check weather conditions/haber
- Read local news/eczane
- Find on-duty pharmacies
Future Enhancements
- Voice command support
- Multi-language interface
- Personalized notifications
- Advanced analytics dashboard