new post fix

This commit is contained in:
dan63047 2020-06-09 21:41:20 +03:00
parent 3ef5a9b459
commit 8b9ab0efce
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ def bots():
log(False, f"[NEW_POST] id{event.object.id}")
users = db.get_all_users()
for i in users:
bot[int(i)].event("post", event.object)
bot[int(i['chat_id'])].event("post", event.object)
elif event.type == VkBotEventType.MESSAGE_DENY:
log(False, f"User {event.object.user_id} deny messages from that group")
del bot[int(event.object.user_id)]