The Telegram Help Bot is designed to assist users in Ukraine who need help during emergencies. This bot enables users to submit requests for assistance by providing their location and address. It integrates with Google Sheets to store user information and requests, allowing for organized tracking and response to those in need.
- User Interaction: Engages users with a friendly greeting and options to request help or decline assistance.
- Location Submission: Prompts users to provide their city and specific address requiring assistance.
- Data Storage: Collects user information and requests, storing them in a Google Sheet for easy access and management.
- Confirmation Process: Validates the user's inputs for the city and address before final submission.
- Error Handling: Provides feedback and prompts to guide users in case of incorrect input or issues during the process.
- Start Command: Initializes the conversation and presents options to the user.
- City Submission: Collects the city name from the user and confirms it.
- Address Submission: Collects the specific address and confirms its accuracy.
- Data Writing: Upon confirmation, the bot writes the collected data to a designated Google Sheet.
- Session Management: Uses session management to track user input throughout the conversation.
- Error Handling: Includes mechanisms to handle errors gracefully and provide user-friendly messages.
- Node.js
- Telegram Bot API token
- Google Sheets API credentials (including
credentials.json
andtoken.json
)
- Clone the repository to your local machine:
git clone https://github.com/yourusername/telegram-help-bot.git cd telegram-help-bot node bot.js