rochel3
rochel310mo ago

Convex import causes telegram bot to not work.

pyTelegramApi does not allow me to work. Error given is: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.telegram.org:443 DEBUG:urllib3.connectionpool:https://api.telegram.org:443 "GET /bot6583121108:AAEx-N1Qu7g80kyxGiC-5qgkEG1SsKt87q0/getMe HTTP/1.1" 200 195 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.telegram.org:443 Everything works if i dont have the from Convex import ConvexClient line :/ but when i include it, it gives this error
Bots: An introduction for developers
Bots are small applications that run entirely within the Telegram app. Users interact with bots through flexible interfaces…
9 Replies
ballingt
ballingt10mo ago
That's interesting, could you share a script that does this? Do you need a telegram account to reproduce this?
rochel3
rochel3OP10mo ago
You would need to create a telegram bot using botfather and get the api key @ballingt Give me a second let me send the code
ballingt
ballingt10mo ago
I don't see the error, what's the error?
rochel3
rochel3OP10mo ago
This is the error: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.telegram.org:443 DEBUG:urllib3.connectionpool:https://api.telegram.org/ "GET /bot6583121108:AAEx-N1Qu7g80kyxGiC-5qgkEG1SsKt87q0/getMe HTTP/1.1" 200 195 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.telegram.org:443
Bots: An introduction for developers
Bots are small applications that run entirely within the Telegram app. Users interact with bots through flexible interfaces…
ballingt
ballingt10mo ago
does it still work, but these logs are also printed? This doesn't look like an error to me Convex might incorrectly be setting a global log level
rochel3
rochel3OP10mo ago
Hmm it seems like the bot doesnt work at all even after the start command was given. Without the convex function it was able to run /start and print the message but after commenting it out it works I'll pm you the code
ballingt
ballingt10mo ago
thank you! Thanks for the report a d sorry for the inconvenience here, I'll take a look a bit later today
rochel3
rochel3OP10mo ago
sure! thanks
ballingt
ballingt10mo ago
I've made the fix, it will be in the next release.

Did you find this page helpful?