telebot
telebot copied to clipboard
bot: add support for the test environment
JFYI, tried to use [bot test environment](https://core.telegram.org/bots/webapps#using-bots-in-the-test-environment), it does not work because of the URL construction. Telebot constructs URL as `url := b.URL + "/bot" + b.Token + "/" + method`, but for test server it should be `url := b.URL + "/bot" + b.Token + "/test/" + method` — note the **test** suffix.
Originally posted by @prokher in https://github.com/tucnak/telebot/issues/508#issuecomment-1104446503
@demget I created #558 to add the test environment.