-
-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
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.zipand 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
from pyrogram import Client, types
session_name = ""
api_hash = ""
api_id = 0
app = Client(session_name, api_hash=api_hash, api_id=api_id)
@app.on_deleted_messages()
async def delete_handler(client, messages: list[types.Message]):
print(f"[INFO] New deleted messages...")
for message in messages:
if not message.chat:
print(f"[WARNING] No chat: {message}...")
continue
print("all fine")
app.run()Logs
No response
Metadata
Metadata
Assignees
Labels
No labels