догрузил в гит остальные файлы (git add .), а то до этого забыл. Почистил requirements.txt, чтобы это выглядело по-человечески. Остальные библиотеки подтягиваются прописанными библиотеками. Версии указывал строго
12 lines
323 B
Python
12 lines
323 B
Python
from aiogram import types
|
|
from aiogram.dispatcher.filters import BoundFilter
|
|
|
|
from loader import bot
|
|
|
|
|
|
class IsContributor(BoundFilter):
|
|
|
|
async def check(self, message: types.Message):
|
|
member = await bot.get_chat_member(message.chat.id, message.from_user.id)
|
|
return member.custom_title == "Contributor"
|