mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
fix: stream end
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
2a420ba745
commit
93a3e001c8
@ -155,6 +155,17 @@ def claude_pro_handler(message: Message, bot: TeleBot) -> None:
|
|||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
try:
|
||||||
|
# maybe not complete
|
||||||
|
# maybe the same message
|
||||||
|
bot.edit_message_text(
|
||||||
|
message_id=reply_id.message_id,
|
||||||
|
chat_id=reply_id.chat.id,
|
||||||
|
text=convert(s),
|
||||||
|
parse_mode="MarkdownV2",
|
||||||
|
)
|
||||||
|
except:
|
||||||
|
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=10, long_polling_timeout=5)
|
bot.infinity_polling(timeout=40, long_polling_timeout=20)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user