Skip to content

Create Telegram chat with a new speaker #15

@teners

Description

@teners

In case a talk submitted via Typeform is new and we don't have them in our database, when this hook is triggered:

async def talk_new(talk: TalkInfo, bot: Bot = Depends(telegram_bot)) -> None:
message = templates.new_talk.format(**talk.dict())
await bot.send_message(chat_id=settings.ORG_CHAT_ID, text=message)

we can schedule a background task to create a new chat, add the speaker and all organizers and post a template message explaining the preparing process and yada yada.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions