ダ
Size: a a a
ダ
R
R
R
В
R
W
A
ダ
telebot.apihelper.READ_TIMEOUT = 5
def send_msg(text, id):
try:
bot.send_message(id, text)
except Exception as e:
logging.info(e)
send_msg(text, id)
И так -def send_msg(telegram_id, msg):
try:
bot.send_message(telegram_id, msg)
except (ConnectionAbortedError, ConnectionResetError, ConnectionRefusedError, ConnectionError):
print("ConnectionError - Sending again after 5 seconds!!!")
time.sleep(5)
bot.send_message(telegram_id, msg)
Но я хочу исправить это в библиотеке 😁, Сперва я подумал что это из-за raise и нужно вместо него print ошибки поставить, но не попробовал еще..SC
SC
ダ
SC
В
ダ
ダ
ダ
SC
SC