Похожие чаты

Hey everybody! I want to create a fastapi wrapper for

my tg account with telethon. I’m going to init Telethon client on each request alongside with calling await client.connect() like mentioned here: https://stackoverflow.com/questions/66787326/fastapi-as-backend-for-telethon.

But I don’t feel this is a right way. So my questions are:

1) Is it ok to call client.connect() frequently? Or this activity will probably lead to ban?
2) Isn’t it better to have some kind of a singleton Telethon client in this case?

1 ответов

9 просмотров

server limits are unknown

Похожие вопросы

Обсуждают сегодня

Карта сайта