mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 08:37:09 +08:00
fix
This commit is contained in:
parent
93a3e001c8
commit
15823907e4
@ -153,8 +153,8 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
|||||||
text=convert(s),
|
text=convert(s),
|
||||||
parse_mode="MarkdownV2",
|
parse_mode="MarkdownV2",
|
||||||
)
|
)
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
print(str(e))
|
||||||
try:
|
try:
|
||||||
# maybe not complete
|
# maybe not complete
|
||||||
# maybe the same message
|
# maybe the same message
|
||||||
@ -164,7 +164,8 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
|||||||
text=convert(s),
|
text=convert(s),
|
||||||
parse_mode="MarkdownV2",
|
parse_mode="MarkdownV2",
|
||||||
)
|
)
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(str(e))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
player_message.append(
|
player_message.append(
|
||||||
|
2
tg.py
2
tg.py
@ -31,7 +31,7 @@ def main():
|
|||||||
|
|
||||||
# Start bot
|
# Start bot
|
||||||
print("Starting tg collections 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__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user