messageActionNoForwardsToggle #

Emitted only in private chats when enabling or disabling content protection ».

Layer 223

messageActionNoForwardsToggle#bf7d6572 prev_value:Bool new_value:Bool = MessageAction;

Parameters #

NameTypeDescription
prev_valueBoolPrevious protection status (if true, the chat was protected). May be equal to new_value when replying to requests, see here » for more info on the full flow.
new_valueBoolNew protection status.

Type #

MessageAction

Content protection #

Users and bots who want to keep their messages private, as well as Group and Channel owners who want to keep their content members-only can enable content protection, which prevents screenshots, copying, disables message forwards and limits the ability to save media from posts.