mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Update reply filter to work with stories
This commit is contained in:
parent
d516397089
commit
a777b8ba81
@ -230,11 +230,11 @@ text = create(text_filter)
|
|||||||
|
|
||||||
# region reply_filter
|
# region reply_filter
|
||||||
async def reply_filter(_, __, m: Message):
|
async def reply_filter(_, __, m: Message):
|
||||||
return bool(m.reply_to_message_id)
|
return bool(m.reply_to_message_id or m.reply_to_story_id)
|
||||||
|
|
||||||
|
|
||||||
reply = create(reply_filter)
|
reply = create(reply_filter)
|
||||||
"""Filter messages that are replies to other messages."""
|
"""Filter messages that are replies to other messages or stories."""
|
||||||
|
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user