You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Hi! I ran into a little problem with the deleted message handler. I'm using the decorator @on_deleted_messages(), and it worked fine before that.
Since some time ago, he stopped receiving complete data. He gets a list of messages, but the message looks like this:
{
"_": "Message",
"id": 150413
}
And this is definitely not enough to work with data. I need at least the chat ID, but it's gone somewhere.
I would like to make sure that I can't do anything on my part. I didn't find any information in the documentation, and neither did the posts.
Steps to reproduce
Checked internet
Checked documentation
Code example
frompyrogramimportClient, typessession_name=""api_hash=""api_id=0app=Client(session_name, api_hash=api_hash, api_id=api_id)
@app.on_deleted_messages()asyncdefdelete_handler(client, messages: list[types.Message]):
print(f"[INFO] New deleted messages...")
formessageinmessages:
ifnotmessage.chat:
print(f"[WARNING] No chat: {message}...")
continueprint("all fine")
app.run()
Logs
No response
The text was updated successfully, but these errors were encountered:
JuiceFW
changed the title
DeletedMessagesHandler "question".
DeletedMessagesHandler not enough data.
Nov 28, 2024
JuiceFW
changed the title
DeletedMessagesHandler not enough data.
DeletedMessagesHandler missing data.
Nov 28, 2024
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip
and reproduced the issue using the latest development versionDescription
Hi! I ran into a little problem with the deleted message handler. I'm using the decorator @on_deleted_messages(), and it worked fine before that.
Since some time ago, he stopped receiving complete data. He gets a list of messages, but the message looks like this:
{
"_": "Message",
"id": 150413
}
And this is definitely not enough to work with data. I need at least the chat ID, but it's gone somewhere.
I would like to make sure that I can't do anything on my part. I didn't find any information in the documentation, and neither did the posts.
Steps to reproduce
Code example
Logs
No response
The text was updated successfully, but these errors were encountered: