mirror of
https://github.com/yshtcn/DiaryAssistant_bot.git
synced 2025-12-17 03:40:19 +08:00
Squashed commit of the following:
commit d8cb43934c49a7dba8d22b55f28bf90eef5c45d7
Author: yshtcn <k.yshtcn+github@gmail.com>
Date: Mon Sep 25 21:08:39 2023 +0800
- 增加一次重试机会,以避免长时间的等待。
# Conflicts:
# Diary Assistant.py
This commit is contained in:
parent
4a93dabcb1
commit
14848befb1
@ -160,8 +160,7 @@ def main():
|
|||||||
print(f"set menu:{result}")
|
print(f"set menu:{result}")
|
||||||
print("Checking for updates...")
|
print("Checking for updates...")
|
||||||
updates = get_updates(last_update_id)
|
updates = get_updates(last_update_id)
|
||||||
if updates and "result" in updates:
|
if updates and "result" in updates:
|
||||||
|
|
||||||
|
|
||||||
print(f"Received updates: {updates}")
|
print(f"Received updates: {updates}")
|
||||||
for update in updates["result"]:
|
for update in updates["result"]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user