我正在尝试将聊天消息复制到另一个消息中,并更改照片和按钮链接, 但是我无法在更改之前复制原始消息。
from telethon import TelegramClient, events
from telethon.tl.types import Message
@client.on(events.NewMessage(oldChat))
async def handler(event):
message = event.raw_text
newmsg = Message(0)
newmsg.message = originalmsg.message <------ here the text is not formatted
newmsg.media = originalmsg.media
newmsg.buttons = originalmsg.buttons
newmsg.buttons[0].text = 'OPEN IT' <------ here no button appear
client.send_message(newChat,newmsg)
有什么主意吗?