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?
                  
                  
                
server limits are unknown
Обсуждают сегодня