Way to use Webhooks #4
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: thereadme/node-telegram-api#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently this API uses polling for updates (i guess).
It would be nice if you could configure it to not poll for updates and offer a method to input messages received by webhooks.
This way the user could fire up a express/koa/hapi server and feed the payload from webhookts to the bot.
Would that be clever?
Hi, that is planned, I'm going to implement it in the coming days, if you want to contribute, I accept pull requests.
Thanks!
Hey @themasch, I just pushed a commit which adds support for webhooks, but as I don't have an HTTPS certification or any experience using HTTPS, I'm not sure if it will work with HTTPS connections.
b55fb3c
I tested it with HTTP and it was OK, can you please test this and give feedback? Also if you manage to get it running, please give me your code so I can add it to our examples.
To use webhooks:
Thanks!
@mdibaiee You could use https://ngrok.com or https://letsencrypt.org if you're looking for SSL - I'm currently using letsencrypt for my personal dedi with a Telegram API endpoint, over SSL, and letsencrypt has meant I don't have to send a SSL certification to Telegram's
setWebhook
either! 😉@jdrydn You're right! Thank you for mentioning this! 👍