mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Enhance filters.me to allow it intercept own anonymous messages (#501)
* Check message.outgoing 'True' in me_filter. * After reinterpretation of the ticket, check if user or outgiong. Closes #499
This commit is contained in:
parent
87f20a1ac2
commit
332468d271
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ all = create(all_filter)
|
|||
|
||||
# region me_filter
|
||||
async def me_filter(_, __, m: Message):
|
||||
return bool(m.from_user and m.from_user.is_self)
|
||||
return bool(m.from_user and m.from_user.is_self or m.outgoing)
|
||||
|
||||
|
||||
me = create(me_filter)
|
||||
|
|
|
|||
Loading…
Reference in a new issue