Open realtebo opened 1 year ago
To log out your bot you can just do curl -X POST https://api.telegram.org/<api_key:api_hash>/logOut
After that, you should run the Bot API server locally, see https://github.com/tdlib/telegram-bot-api, and then something like this:
botToken := "some-bot-token"
apiUrl := "http://localhost:8081/bot%s/%s"
bot, err := tgbotapi.NewBotAPIWithAPIEndpoint(botToken, apiUrl)
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:
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?