This commit is contained in:
yihong0618 2024-03-18 17:23:38 +08:00
parent 93a3e001c8
commit 15823907e4
2 changed files with 5 additions and 4 deletions

View File

@ -153,8 +153,8 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
text=convert(s),
parse_mode="MarkdownV2",
)
except:
pass
except Exception as e:
print(str(e))
try:
# maybe not complete
# maybe the same message
@ -164,7 +164,8 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
text=convert(s),
parse_mode="MarkdownV2",
)
except:
except Exception as e:
print(str(e))
pass
player_message.append(

2
tg.py
View File

@ -31,7 +31,7 @@ def main():
# Start bot
print("Starting tg collections bot.")
bot.infinity_polling(timeout=40, long_polling_timeout=20)
bot.infinity_polling(timeout=40, long_polling_timeout=120)
if __name__ == "__main__":