error and not stop? telethon.errors.rpcbaseerrors.TimedOutError: RPCError -503: Timedout (caused by GetUsersRequest)
import telethon.errors try: # code here except telethon.errors.rpcbaseerrors: print("error") # you should sleep if it requires
I don’t understand, does the script stop after this error or not? telethon.errors.rpcbaseerrors.TimedOutError
Not if you handled the error well, try and except prevent the code from crashing if this is what you want.
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.
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.
Обсуждают сегодня