Похожие чаты

How can I make the script continue working after this

error and not stop? telethon.errors.rpcbaseerrors.TimedOutError: RPCError -503: Timedout (caused by GetUsersRequest)

6 ответов

40 просмотров

import telethon.errors try: # code here except telethon.errors.rpcbaseerrors: print("error") # you should sleep if it requires

lead- Автор вопроса
J.
import telethon.errors try: # code here except...

I don’t understand, does the script stop after this error or not? telethon.errors.rpcbaseerrors.TimedOutError

lead
I don’t understand, does the script stop after thi...

Not if you handled the error well, try and except prevent the code from crashing if this is what you want.

lead- Автор вопроса
J.
Not if you handled the error well, try and except ...

by default without the try block, does this error stop the script?

the script can and will work after this error, but it will not work correctly. he can send the same messages repeatedly or send incomplete messages. for example, the text will send, but the picture will not. I have messages that consist of 3 messages, text + media + sticker it is better to restart the project.

💜
the script can and will work after this error, but...

something like this. when the 503 error appears, the sticker will be sent, but the picture and text will not. if you try to call the message again. perhaps it will be sent in full.

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта