You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Есть еще идея, как очень легко автоматизировать выгрузку списков посещения. Судя по всему, достаточно сделать автоматическое отправление сообщения в телеге (раз в неделю) со списком на ресепшн СК. Думаю это достаточно легко реализовать, по этому если есть немного времени, было бы круто это реализовать.
Current situation
One of music room Lords should write /export_participants command to receive .docx file with participants; And then resend it to sport complex worker somehow
Implementation
Store sport complex worker' telegram id in settings
@router.message(Command("export_participants"), StatusFilter(ParticipantStatus.LORD))asyncdefexport_participants(message: types.Message):
response=awaitclient.export_participants(message.from_user.id)
ifresponse:
bytes_, filename=responsedocument=BufferedInputFile(bytes_, filename)
awaitmessage.answer_document(document, caption="Here is the list of participants.")
else:
awaitmessage.answer("You don't have access to this command.")
The text was updated successfully, but these errors were encountered:
Feature
From Leon:
Current situation
One of music room Lords should write
/export_participants
command to receive .docx file with participants; And then resend it to sport complex worker somehowImplementation
Related code
admin.py:50
The text was updated successfully, but these errors were encountered: