Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from aiogram.dispatcher.filters import BoundFilter
- class ReplyButtonFilter(BoundFilter):
- key = "reply_button"
- def __init__(self, reply_button):
- self.reply_button = reply_button
- async def check(self, update) -> bool:
- return self.reply_button == update.text
Advertisement
Add Comment
Please, Sign In to add comment