Y

Size: a a a
Y
§
ЕП
ЕП
Y
TA
Y
§
ЕП
§
TA
ЕП
§
Y
ЕП
DK
Y
СЗ
# Отправление по таймингуОшибка
async def scheduled(sleep_for, queue):
while True:
await asyncio.sleep(sleep_for)
# получаем список подписчиков бота
subscriptions = db.get_subscriptions()
# Отправляем всем подписчикам
for s in subscriptions:
for obj in zip(tokens, clientLogins):
await bot.send_message(s[1], yaBalance(obj[0], obj[1]), disable_notification=True)
# запускаем лонг поллинг
if __name__ == '__main__':
dp.loop.create_task(scheduled(10))
executor.start_polling(dp, skip_updates=True)
Traceback (most recent call last):
File "E:/Python/ads_tgbot/bot.py", line 88, in <module>
dp.loop.create_task(scheduled(10))
AttributeError: 'NoneType' object has no attribute 'create_task'
КП
F