telebot icon indicating copy to clipboard operation
telebot copied to clipboard

Upgrade up to Bot API 6.0

Open udev-21 opened this issue 2 years ago • 5 comments

April 16, 2022

Bot API 6.

udev-21 avatar Apr 17 '22 08:04 udev-21

JFYI, tried to use bot 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.

prokher avatar Apr 20 '22 20:04 prokher

JFYI, tried to use bot 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.

@prokher i guess you should set Settings.Offline to true when using tele.NewBot(tele.Setting{...})

amirhossein-ka avatar Apr 25 '22 14:04 amirhossein-ka

I am not sure what Settings.Offline does, but it looks like it simply prevents a bot from connecting to the server. This is quite fine for testing, but for local development and debug I need to connect to Telegram test environment, like it is described in the documentation here: https://core.telegram.org/bots/webapps#using-bots-in-the-test-environment.

prokher avatar Apr 26 '22 11:04 prokher

Yes sorry for wrong info

amirhossein-ka avatar Apr 26 '22 16:04 amirhossein-ka

Hey guys.

Is migration to bot API v6 still under development?

cheshir avatar Jun 17 '22 21:06 cheshir

still waiting

osinniy avatar Oct 02 '22 08:10 osinniy

Bot API 6.1 and 6.2 will be included in the v3.1 release as well.

demget avatar Oct 04 '22 19:10 demget