telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

How to connect webhook to telegram-bot-api on server ubuntu

Open khamid4575 opened this issue 1 year ago • 1 comments

I downloaded telegram-bot-api to the server. Got domain and SSL too. How do I get updates now? How to connect webhook?

https://api.telegram.org/bot{bottoken}/setWebhook?url=https://mydomain.com

or

https://mydomain/bot{bottoken}/setWebhook?url=https://mydomain.com

which one is correct and how do I get the update from the webhook.

khamid4575 avatar Feb 29 '24 13:02 khamid4575

You must either use the server at api.telegram.org, or the local Bot API server. You must call logOut once on the other server and must not call any other method on the other server after that, so all requests must be sent to the used server.

levlam avatar Feb 29 '24 21:02 levlam