chore: loosen condition check for channel message unpinning
This commit is contained in:
parent
9bd06a0bda
commit
4225b6e8a3
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class TelegramAdapter:
|
|||
# unpin 模块
|
||||
# 不知道为什么检测不到频道的消息被置顶这个事件,暂时认为所有的频道消息都是被置顶的
|
||||
unpin_router.message(F.chat.type.in_({'group', 'supergroup'}) & F.sender_chat & (
|
||||
F.sender_chat.type == 'channel') & F.is_automatic_forward)(
|
||||
F.sender_chat.type == 'channel'))(
|
||||
handle_unpin_channel_message)
|
||||
# repeater 模块
|
||||
repeater_router.message(F.chat.type.in_({'group', 'supergroup'}))(MessageRepeater().handle_message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue