
14.09.2023, 22:39
|
|
Участник форума
Регистрация: 08.11.2021
Сообщений: 131
С нами:
2376214
Репутация:
18
|
|
Python:
Код:
while
True
:
new_posts
=
get_new_posts
(
access_token
,
group_id
,
last_post_id
)
if
new_posts
:
last_post_id
=
new_posts
[
0
]
[
'id'
]
for
post
in
new_posts
:
send_post_to_telegram
(
bot_token
,
chat_id
,
post
)
time
.
sleep
(
60
)
Я понимаю, что надо await поставить, но как сделать, чтобы ошибки не вызвало хезе
|
|
|