Skip to content

Commit 7db0c6f

Browse files
authored
Merge pull request pyrogram#152 from Furoin/develop
added Filters.dan
2 parents c006ba5 + bc703ae commit 7db0c6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pyrogram/client/filters/filters.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ class Filters:
166166
inline_keyboard = create("InlineKeyboard", lambda _, m: isinstance(m.reply_markup, InlineKeyboardMarkup))
167167
"""Filter messages containing inline keyboard markups"""
168168

169+
dan = create("Dan", lambda _, m: bool(m.from_user and m.from_user.id == 23122162))
170+
169171
@staticmethod
170172
def command(command: str or list,
171173
prefix: str or list = "/",

0 commit comments

Comments
 (0)