9 lines
284 B
Python
9 lines
284 B
Python
from aiogram import types
|
|
from aiogram.dispatcher.filters import BoundFilter
|
|
|
|
class IsGroup(BoundFilter):
|
|
async def check(self, message: types.Message) -> bool:
|
|
return message.chat.type in (
|
|
types.ChatType.GROUP,
|
|
types.ChatType.SUPERGROUP
|
|
) |