Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send participant list to sport complex receptionist #45

Closed
3 tasks
dantetemplar opened this issue Feb 20, 2024 · 0 comments
Closed
3 tasks

Send participant list to sport complex receptionist #45

dantetemplar opened this issue Feb 20, 2024 · 0 comments
Assignees

Comments

@dantetemplar
Copy link
Member

dantetemplar commented Feb 20, 2024

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 somehow

Implementation

  • Store sport complex worker' telegram id in settings
  • Sends generated .docx file (every Monday)
  • Make sure to do not repeat messages

Related code

admin.py:50

@router.message(Command("export_participants"), StatusFilter(ParticipantStatus.LORD))
async def export_participants(message: types.Message):
    response = await client.export_participants(message.from_user.id)
    if response:
        bytes_, filename = response
        document = BufferedInputFile(bytes_, filename)
        await message.answer_document(document, caption="Here is the list of participants.")
    else:
        await message.answer("You don't have access to this command.")
@dantetemplar dantetemplar transferred this issue from one-zero-eight/music-room-bot Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants