Telegram bot to find doctors in cities using Jameda's public API.
-
Get a
TOKEN
from the @Botfather and export asprocess.env.TOKEN
:export TOKEN=<your.token>
-
Deploy this function to receive your endpoint URL:
npm install sls deploy // snip endpoints: POST - https://your-url.us-east-1.amazonaws.com/dev/find
-
Register the endpoint URL with the bot:
curl \ --request POST \ --url https://api.telegram.org/bot<TOKEN>/setWebhook \ --header 'content-type: application/json' \ --data '{"url": "https://your-url.us-east-1.amazonaws.com/dev/find"}'
-
Talk to your bot!