tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Unknown error in class "messageReplyToMessage" #2836

Closed ZdGram closed 7 months ago

ZdGram commented 7 months ago

@levlam If the bot reply to a message in a content_protector group, the res will be "protected content and can't be forwarded is printed"

But when the content protection is cancelled, it works normally

levlam commented 7 months ago

Check documentation of inputMessageReplyToMessage.chat_id, for which you pass a wrong value:

The identifier of the chat to which the message to be replied belongs; pass 0 if the message to be replied is in the same chat. Must always be 0 for replies in secret chats. A message can be replied in another chat or topic only if message.can_be_replied_in_another_chat