Guest User

Untitled

a guest
May 13th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from aiogram.dispatcher.filters import BoundFilter
  2.  
  3.  
  4. class ReplyButtonFilter(BoundFilter):
  5.  
  6.     key = "reply_button"
  7.  
  8.     def __init__(self, reply_button):
  9.         self.reply_button = reply_button
  10.  
  11.     async def check(self, update) -> bool:
  12.         return self.reply_button == update.text
Advertisement
Add Comment
Please, Sign In to add comment