telegram-event-poll-bot
is a Telegram bot designed to create and manage event polls. Users can create events, set various parameters, and allow participants to vote on different options.
- Create events with descriptions, start times, and options.
- Send event polls to groups.
- Collect and display votes from participants.
-
Clone the repository:
git clone https://github.com/yourusername/telegram-event-poll-bot.git cd telegram-event-poll-bot
-
Install dependencies:
go mod tidy
-
Create a
config.json
file by copying the config_template.json files and update your Telegram bot token
-
Run the bot:
go run .
-
Interact with the bot on Telegram:
- Use
/start
to begin creating an event. - Follow the prompts to set event details.
- Use
/send
to send the event poll to a group.
- Use
main.go
: Entry point of the application. Initializes the bot and sets up handlers.createEventHandler.go
: Handles the creation of events and user interactions.event.go
: Defines theEvent
andEventAndUsers
structs and related methods.utils.go
: Utility functions for common tasks.