team-work-tools / team-work-telegram-bot

A Telegram bot that helps you conduct daily (or at least regular) meetings
MIT License
0 stars 2 forks source link

Support topics #14

Closed deemp closed 6 days ago

deemp commented 3 weeks ago

Details

Problem

Currently, the bot may not be able to reply in the group topic where it received a command.

This inability is because we use message.chat.id to get the message source.

https://github.com/team-work-tools/team-work-telegram-bot/blob/0cb8bbf26aa1ba0351481a83d4815c501f6ee01b/bot/filters.py#L26

https://github.com/team-work-tools/team-work-telegram-bot/blob/0cb8bbf26aa1ba0351481a83d4815c501f6ee01b/bot/state.py#L21

Acceptance test

  1. I add the bot to our project group on Telegram
  2. I switch to the Test topic
  3. I send /start
  4. I send /join
  5. I send /set_meetings_time <current time + one minute>
  6. Expected result: I receive daily messages in one minute in the Test topic

Subtasks

deemp commented 6 days ago

Superseded by https://github.com/team-work-tools/team-work-telegram-bot/pull/65