догрузил в гит остальные файлы (git add .), а то до этого забыл. Почистил requirements.txt, чтобы это выглядело по-человечески. Остальные библиотеки подтягиваются прописанными библиотеками. Версии указывал строго
16 lines
426 B
Python
16 lines
426 B
Python
from aiogram import types
|
|
from aiogram.dispatcher.filters import BoundFilter
|
|
|
|
|
|
class IsGroup(BoundFilter):
|
|
|
|
async def check(self, message: types.Message):
|
|
return message.chat.type in (types.ChatType.GROUP,
|
|
types.ChatType.SUPER_GROUP)
|
|
|
|
|
|
class IsPrivate(BoundFilter):
|
|
|
|
async def check(self, message: types.Message):
|
|
return message.chat.type == types.ChatType.PRIVATE
|