2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-25 03:17:41 +00:00

Merge pull request #152 from Furoin/develop

added Filters.dan
This commit is contained in:
Dan 2018-11-03 13:13:40 +01:00 committed by GitHub
commit 7db0c6fe79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = "/",