Skip to content

doque/jambot

Repository files navigation

Jambot

Telegram bot to find doctors in cities using Jameda's public API.

Jameda Bot architecture

Setup

  1. Get a TOKEN from the @Botfather and export as process.env.TOKEN:

      export TOKEN=<your.token>
  2. 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
  3. 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"}'
  4. Talk to your bot!

Releases

No releases published

Packages

No packages published