A telegram bot that is connected to Google Sheets made for scheduling training timeslots
Steps:
- Use BotFather on telegram to register a bot and get a bot id
- Create or use an existing google sheet that you wish to connect your bot to
- In the main page of the new google sheet, click on Script Editor in the Tools dropdown menu
- Copy paste the code in the NUSRecreVballBot.js file
- To deploy the web application, click on Deploy at the top right hand corner of the script editor page
- Select New Deployment
- Change the Who Has Access setting to Anyone so that anyone can write to your Google Sheet
- After deploying the Web App, copy and paste the URL into the script under Web server URL
- Fill in your bot's ID and your google sheet's ID in their respectively placeholders in the script
- Search for '@yourBotsUsername'
- Test out the bot's functionalities using Telegram!
Functionalities (typed out in a private chat with the bot):
- 'start'
- Initialises a poll about the training dates you are able to attend
- If you have an existing booking, it overwrites the old one
- If you don not have an existing booking, it creates a new one
- 'remove'
- Removes your Google sheet entry about your current booking
- 'check count'
- Shows the number of people attending each training timeslot
- 'check booking'
- Shows your current timeslot booking