How to use the protect_content? #2860
Answered
by
Bibo-Joshi
paavampayyan
asked this question in
Q&A
-
how can i send protected content using bot? i got this error 'TypeError: Message.reply_photo() got an unexpected keyword argument 'protect_content'' |
Beta Was this translation helpful? Give feedback.
Answered by
Bibo-Joshi
Jan 12, 2022
Replies: 1 comment 9 replies
-
The parameter is new in version 13.10. You're apparently on an older version and need to upgrade to use that parameter. Alternatively, you can use the |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
Bibo-Joshi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The parameter is new in version 13.10. You're apparently on an older version and need to upgrade to use that parameter. Alternatively, you can use the
api_kwargs
parameter to pass theprotected_content
to TG without upgrading.