Closed SuperZombi closed 3 months ago
Все работает, просто ты не так юзаешь. reply_to принимает тип raw.base.InputReplyTo, а ты пихаешь инт...
Found a solution. Need to use get_reply_to
:
from pyrogram.raw.functions.messages import SendScreenshotNotification
from pyrogram.utils import get_reply_to
client.invoke(SendScreenshotNotification(
peer=client.resolve_peer(message.chat.id),
reply_to=get_reply_to(reply_to_message_id=message.id),
random_id=client.rnd_id()
))
Вобще я предлагаю сделать по нормальному функцию, чтобы это выглядело примерно вот так:
SendScreenshotNotification(
chat_id=message.chat.id
)
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip
and reproduced the issue using the latest development versionDescription
On the official version of pyrogram (2.0.106), the notification for sending screenshots worked. Doesn't work on your fork (2.1.16)
Steps to reproduce
I tried changing the attribute name:
But it still doesn't work
Code example
No response
Logs
No response