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:
M. Smits 2020-10-18 18:37:41 +02:00 committed by GitHub
parent 87f20a1ac2
commit 332468d271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)