A Telegram bot print out Malaysia 🇲🇾
- vaccination data
- daily confirmed case(s)
🔷 Written in JavaScript
.
🔷 Working on Google App Script
.
- school vaccinations
- history track
- daily vaccinations data
- aadolescents
- children
- adult
-
v1 (old versions)
- daily vaccinations message
- progress bar
- percentage of daily new vaccination
-
v2
- features same as v1
- Estimate duration for dose(s) to reach 80% coverage
- tree shape data formated
- adolescent, child daily vaccinations percentage
Bot: @myvaccinecountbot
- Google App Script (based JS API)
- Telegram Bot API
This a simple explanation. Maybe it's not useful for beginners.
$ git clone https://github.com/manho30/MyVaxCountBot
$ cd function/src/
$ npm install @google/clasp -g
You could choose the version you like
- Change your own
bot_token
. - Change
Const.myId
to your personal ID.
Manually push the code
Open this link
- Create a app script project
- Put all the code
- Save and deploy
On Google App Script
- Open
const.js
- Click on PUBLISH button and copy the URL.
- Change the
Const.gasLink
with the URL. - Save
- Open
webhook.gs
, runfetchingWebhook
function.
- Change the
Don't forget to setup the trigger if you are planning to sent daily data in channel.
- Open the project and create a new trigger.
- Select
AutoSendMessage
as function to run. - Select
Day timer
as type of time based trigger
Note: You are free to fill in
the hour interval
options,
but preferably after 8am.
More about Telegram Bot API please visit here