为什么程序看不到消息?

问题描述 投票:0回答:1

如果有高级表情符号或报价,程序不会看到该消息。如果那里有关键字,我想接受该消息并转发它

我的代码

type python
from pyrogram import Client,filters
client = Client("my_account", api_id, api_hash) 
@client.on_message(filters.channel & filters.chat(channels))
async def my_handler(client, message):
    print(message)

打印(消息)

 "_": "Message",
    "id": 309,
    "sender_chat": {
        "_": "Chat",
        "id": --------,
        "type": "ChatType.CHANNEL",
        "is_verified": false,
        "is_restricted": false,
        "is_creator": false,
        "is_scam": false,
        "is_fake": false,
        "title": "test",
        "username": "-------",
        "has_protected_content": false
    },
    "date": "2024-04-12 17:57:43",
    "chat": {
        "_": "Chat",
        "id": -------,
        "type": "ChatType.CHANNEL",
        "is_verified": false,
        "is_restricted": false,
        "is_creator": false,
        "is_scam": false,
        "is_fake": false,
        "title": "-------",
        "username": "-------",
        "has_protected_content": false
    },
    "forward_from_chat": {
        "_": "Chat",
        "id": --------,
        "type": "ChatType.CHANNEL",
        "is_verified": false,
        "is_restricted": false,
        "is_creator": false,
        "is_scam": false,
        "is_fake": false,
        "title": "-------",
        "username": "-------",
        "photo": {
            "_": "ChatPhoto",
            "small_file_id": "AQADAgADKdIxG9-bCEgAEAIAAzSnBNwW____ow5QrQzS_tIABB4E",
            "small_photo_unique_id": "AgADKdIxG9-bCEg",
            "big_file_id": "AQADAgADKdIxG9-bCEgAEAMAAzSnBNwW____ow5QrQzS_tIABB4E",
            "big_photo_unique_id": "AgADKdIxG9-bCEg"
        },
        "dc_id": 2,
        "has_protected_content": false
    },
    "forward_from_message_id": 14845,
    "forward_date": "2024-04-03 13:29:22",
    "mentioned": false,
    "scheduled": false,
    "from_scheduled": false,
    "has_protected_content": false,
    "views": 1,
    "forwards": 0,
    "outgoing": true
}

如果有高级表情符号或报价。文字在哪里?!

更换了 ID 于 --------

我尝试在电话上做到这一点,结果只是在热解图纯文本上,没有高级微笑和引号

python telegram pyrogram
1个回答
0
投票

这已经是热解图的一个已知问题:link

您应该考虑使用它的维护分支。 Pyrogram 的维护者不再维护该库。

© www.soinside.com 2019 - 2024. All rights reserved.