Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with markdown unparse and parse #116

Open
3 tasks done
SpEcHiDe opened this issue Feb 20, 2025 · 0 comments
Open
3 tasks done

Issue with markdown unparse and parse #116

SpEcHiDe opened this issue Feb 20, 2025 · 0 comments

Comments

@SpEcHiDe
Copy link
Contributor

SpEcHiDe commented Feb 20, 2025

Checklist

  • I am sure the error is coming from Pyrofork's code and not elsewhere
  • I have searched in the issue tracker for similar bug reports, including closed ones
  • I ran pip3 install -U git+https://github.com/Mayuri-Chan/pyrofork and reproduced the issue using the latest development version

Description

Try to unparse the markdown using Pyrogram and send back the received string using send_message method

Steps to reproduce

error.text and second.text looks different.

Code example

from pyrogram import Client
from pyrogram.enums import ParseMode

async def main():
  async with Client("my_account") as app:
    error = await app.get_messages(chat_id=-1001220993104, message_ids=1387647)
    first = await error.reply(error.text.markdown, parse_mode=ParseMode.DISABLED)
    second = await error.reply(first.text, parse_mode=ParseMode.MARKDOWN)

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant