tucnak/telebot

how to use the test environment?

Opened this issue · 1 comments

how to use the test environment?

It seems there will be an option UseTestEnv, more details are here #558. Unfortunately looks like it is not released yet. The latest release is v3.3 and PR mentioned above is in the v3.4 branch. Meanwhile I've found a simple trick. Adding /test to the token (actually the test one) seems to be working perfectly fine.

@tucnak, may be #558 is a bit of over-engineering. Indeed, to run in the test mode I will have to use test token and set UseTestEnv: true, while adding suffix /test to the token seems to simplify things a bit by removing the step of setting UseTestEnv. In other words, with /test suffix, I can switch from prod to test simply changing the environment, without any modifications in the code. Just sharing my humble considerations.