Починены уведомления о днях рождения.
This commit is contained in:
parent
2add413fde
commit
1e92d3706f
1 changed files with 3 additions and 4 deletions
|
|
@ -4,7 +4,6 @@ import traceback
|
|||
from asyncio import sleep
|
||||
|
||||
from vkbottle import API, bold
|
||||
from vkbottle_types.codegen.objects import UsersFields
|
||||
|
||||
from messages import *
|
||||
|
||||
|
|
@ -13,7 +12,7 @@ from vk.handlers.user import format_rating
|
|||
from vk.utils import *
|
||||
|
||||
|
||||
async def cleanup_chats(api: API):
|
||||
async def cleanup_chats(_api: API):
|
||||
# TODO
|
||||
pass
|
||||
|
||||
|
|
@ -73,8 +72,8 @@ async def check_birthdays(api: API):
|
|||
continue
|
||||
|
||||
chat_id = chat['chat_id']
|
||||
members = await api.messages.get_conversation_members(peer_id=chat_id, extended=False,
|
||||
fields=[UsersFields.BDATE])
|
||||
# noinspection PyTypeChecker
|
||||
members = await api.messages.get_conversation_members(peer_id=chat_id, fields=['bdate'])
|
||||
today = datetime.datetime.today()
|
||||
|
||||
for item in members.items:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue