mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 15:14:52 +00:00
pyrofork: Adapt filters.linked_channel to latest changes
Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
parent
36e3eca8b3
commit
0dedc9790c
1 changed files with 1 additions and 1 deletions
|
|
@ -796,7 +796,7 @@ from_scheduled = create(from_scheduled_filter)
|
||||||
|
|
||||||
# region linked_channel_filter
|
# region linked_channel_filter
|
||||||
async def linked_channel_filter(_, __, m: Message):
|
async def linked_channel_filter(_, __, m: Message):
|
||||||
return bool(m.forward_from_chat and not m.from_user)
|
return bool((m.forward_origin and m.forward_origin.chat) and not m.from_user)
|
||||||
|
|
||||||
|
|
||||||
linked_channel = create(linked_channel_filter)
|
linked_channel = create(linked_channel_filter)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue