go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.75k stars 887 forks source link

Add Redacting function to protect api_token from being printed to log #660

Open mahdigheidi opened 1 year ago

mahdigheidi commented 1 year ago

This is a fix to solve Issue 628. Resolves #628 The err was due to a hangup on tcp port and was cascaded from net/http library. Because the url included the bot token and the error info was needed, the solution would be to redact the api_token from the url logged to output.