mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: Adapt filters.linked_channel to latest changes
Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
parent
46e755f297
commit
4a109b3dc2
1 changed files with 1 additions and 1 deletions
|
|
@ -796,7 +796,7 @@ from_scheduled = create(from_scheduled_filter)
|
|||
|
||||
# region linked_channel_filter
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue