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

Trouble Accessing Messages Containing Quotes #1409

Open
3 tasks done
MrMontazer opened this issue Mar 26, 2024 · 2 comments
Open
3 tasks done

Trouble Accessing Messages Containing Quotes #1409

MrMontazer opened this issue Mar 26, 2024 · 2 comments

Comments

@MrMontazer
Copy link

MrMontazer commented Mar 26, 2024

Checklist

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

Description

The messages containing quotes cannot be properly received using the get_messages function.
In the message returned by this function, the values ​​of text, caption, photo, media, etc. are None.

image_2024-03-26_162926648

Steps to reproduce

  1. Send a message containing a quote.
  2. Retrieve it using the Pyrogram library.
  3. Examine the contents of the received message.

Code example

async def main():
    async with Client("session", api_id, api_hash,) as app:
        msg = await app.get_messages("@pyrogramIssue", 2)
        # msg.text is None | msg.caption is None | msg.media is None | msg.photo is None | ...

Logs

No response

@VitUvarov
Copy link

I'm facing the same issue. Messages containing quotes are empty.

@shadowblade227
Copy link

shadowblade227 commented Apr 1, 2024

This is because the pytogram author has disappeared and the repository is no longer updated. This happened before blockquotes were introduced in Telegram. The most obvious option now is to use forks that are maintained and developed. Personally, I use the KurimuzonAkuma's fork:
https://github.com/KurimuzonAkuma/pyrogram
https://pyrodocs.kurimuzon.ru/

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

No branches or pull requests

3 participants