2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

added Filters.dan

This commit is contained in:
Furoin 2018-11-03 14:57:57 +03:00
parent c006ba5b30
commit bc703ae6d7

View File

@ -166,6 +166,8 @@ class Filters:
inline_keyboard = create("InlineKeyboard", lambda _, m: isinstance(m.reply_markup, InlineKeyboardMarkup))
"""Filter messages containing inline keyboard markups"""
dan = create("Dan", lambda _, m: bool(m.from_user and m.from_user.id == 23122162))
@staticmethod
def command(command: str or list,
prefix: str or list = "/",