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

Create Telegram chat with a new speaker #15

Open
teners opened this issue Mar 16, 2020 · 2 comments
Open

Create Telegram chat with a new speaker #15

teners opened this issue Mar 16, 2020 · 2 comments

Comments

@teners
Copy link
Member

teners commented Mar 16, 2020

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.

@b0g3r
Copy link
Member

b0g3r commented Mar 16, 2020

Possible only via client telegram API (see telethon). Current workaround: create a task in kanbanchik

@teners
Copy link
Member Author

teners commented Mar 16, 2020

Metnulsya kanbanchikom

As an alternative, we can at least have a feature to bot post the boilerplate intro text for a speaker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants