Skip to content

Commit fa91d99

Browse files
committed
Added the field has_protected_content to the Chat and Message entities.
1 parent 4e6034d commit fa91d99

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Entities/Chat.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* @method Message getPinnedMessage() Optional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
3333
* @method ChatPermissions getPermissions() Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
3434
* @method int getSlowModeDelay() Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.
35+
* @method bool getHasProtectedContent() Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat.
3536
* @method string getStickerSetName() Optional. For supergroups, name of group sticker set. Returned only in getChat.
3637
* @method bool getCanSetStickerSet() Optional. True, if the bot can change the group sticker set. Returned only in getChat.
3738
* @method int getLinkedChatId() Optional. Unique identifier for the linked chat. Returned only in getChat.

src/Entities/Message.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* @method ReplyToMessage getReplyToMessage() Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
3838
* @method User getViaBot() Optional. Bot through which the message was sent
3939
* @method int getEditDate() Optional. Date the message was last edited in Unix time
40+
* @method bool getHasProtectedContent() Optional. True, if the message can't be forwarded
4041
* @method string getMediaGroupId() Optional. The unique identifier of a media message group this message belongs to
4142
* @method string getAuthorSignature() Optional. Signature of the post author for messages in channels
4243
* @method MessageEntity[] getEntities() Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text

0 commit comments

Comments
 (0)