KurimuzonAkuma / pyrogram

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
https://pyrogram.org
GNU Lesser General Public License v3.0
267 stars 72 forks source link

Quotes disappear if you edit message #51

Closed APAmk2 closed 2 months ago

APAmk2 commented 2 months ago

Checklist

Description

If you add quote to message and then edit it - quote will disappear

Steps to reproduce

  1. Try to edit message, add quote into it
  2. Edit it again, just add some text into already existing text, quote will disappear

Code example

message.edit(text=">" + "quote" + "\n" + message.text)
message.edit(text=message.text + "something")

Logs

No response

SpEcHiDe commented 2 months ago

you have to use

message.edit(text=">" + "quote" + "\n" + message.text)
message.edit(text=message.text.markdown + "something")
APAmk2 commented 2 months ago

Oh, understood, sorry for disturbing.