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

How can I test webhooks locally?

Open realtebo opened this issue 1 year ago • 1 comments

I need a webhook based interaction, so no listening to changes.

I read I can download telegram bot api server locally and build and run it, and I did.

So, it's up and running using my personal api id and hash.

And now?

See here: https://github.com/tdlib/telegram-bot-api

It states:

logOut

Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters.

My question is ..

How can I 'logout' my bot from online api server, as stated in the doc and then tell the bot to use the local bot api server?

realtebo avatar Mar 14 '23 18:03 realtebo