telebot icon indicating copy to clipboard operation
telebot copied to clipboard

bot: add support for the test environment

Open demget opened this issue 3 years ago • 1 comments

    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 avatar Oct 05 '22 20:10 demget

@demget I created #558 to add the test environment.

caalberts avatar Oct 20 '22 19:10 caalberts