1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix group and supergroup issues

This commit is contained in:
_run 2022-06-30 17:51:58 +05:00
parent 419bc5878f
commit d14064a84d
2 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ class StateFilter(AdvancedCustomFilter):
elif isinstance(text, State):
text = text.name
if message.chat.type == 'group':
if message.chat.type in ['group', 'supergroup']:
group_state = await self.bot.current_states.get_state(user_id, chat_id)
if group_state == text:
return True

View File

@ -315,7 +315,7 @@ class StateFilter(AdvancedCustomFilter):
elif isinstance(text, State):
text = text.name
if message.chat.type == 'group':
if message.chat.type in ['group', 'supergroup']:
group_state = self.bot.current_states.get_state(user_id, chat_id)
if group_state == text:
return True