Похожие чаты

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 ответов

16 просмотров

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.

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

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

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
Вопрос. Теоретический. Есть список команд. Команды отправляю в обработку некой функции, по очереди. Разные команды могут давать разные результаты после обработки. В зависимос...
Serjone
7
Привет, нужен совет старших товарищей. Есть глобальная переменная var DefaultDataFolder:string; инициализируем DefaultDataFolder:='a:\_OUT\'; есть примитивная процедур...
Max Otto
9
We heading to 1.1$ 🤔?
CryptoBo$$
35
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
Всем вечера. Подскажите как лучше сделать. делаю на Д10 Например будет база данных на SQLite. в ней будет много таблиц. более 50шт Типа справочник. Содержать ID Name Id p...
Андрей Т 🐎
10
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
А если для werf организовать отдельный репозиторий, а сервисы из проекта подключить как симлинки? И симлинки в гитигнор добавить?
Dmitriy Andreev
13
Ideally, when we launch a game from a particular studio, that studio should have the right to access the uniqs from their game on our wallet. For example, if you die in a Ubis...
Lisandru
16
это группа токсиков или тех кто помогает?
Ибрагим
9
Карта сайта