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
@ -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 New Issue
Block a user