pyrogram.dispatcher - dispatcher - ERROR - 'Message' object has no attribute 'message_id'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/app/plugins/pm_filter.py", line 53, in give_filter
await client.delete_messages(message.chat.id, st_msg.message_id)
AttributeError: 'Message' object has no attribute 'message_id'
Why showing this? How to fix this
tl;dr;
Use
st_msg.idinstead offst_msg.message_idIf you look at the
reply_stickersource code it mentions:So if we look at those
Messageparameters, for example, again in the source code we'll see: