Skip to content

Commit e878e3e

Browse files
committed
add field has_restricted_voice_and_video_messages
1 parent 571c0b3 commit e878e3e

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

src/Entities/Chat.php

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,29 @@
1818
*
1919
* @property string type Type of chat, can be either "private ", "group", "supergroup" or "channel"
2020
*
21-
* @method int getId() Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
22-
* @method string getType() Type of chat, can be either "private ", "group", "supergroup" or "channel"
23-
* @method string getTitle() Optional. Title, for channels and group chats
24-
* @method string getUsername() Optional. Username, for private chats, supergroups and channels if available
25-
* @method string getFirstName() Optional. First name of the other party in a private chat
26-
* @method string getLastName() Optional. Last name of the other party in a private chat
27-
* @method ChatPhoto getPhoto() Optional. Chat photo. Returned only in getChat.
28-
* @method string getBio() Optional. Bio of the other party in a private chat. Returned only in getChat.
29-
* @method bool getHasPrivateForwards() Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.
30-
* @method bool getJoinToSendMessages() Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat.
31-
* @method bool getJoinByRequest() Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat.
32-
* @method string getDescription() Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
33-
* @method string getInviteLink() Optional. Chat invite link, for groups, supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.
34-
* @method Message getPinnedMessage() Optional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
35-
* @method ChatPermissions getPermissions() Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
36-
* @method int getSlowModeDelay() Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.
37-
* @method int getMessageAutoDeleteTime() Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.
38-
* @method bool getHasProtectedContent() Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat.
39-
* @method string getStickerSetName() Optional. For supergroups, name of group sticker set. Returned only in getChat.
40-
* @method bool getCanSetStickerSet() Optional. True, if the bot can change the group sticker set. Returned only in getChat.
41-
* @method int getLinkedChatId() Optional. Unique identifier for the linked chat. Returned only in getChat.
42-
* @method ChatLocation getLocation() Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.
21+
* @method int getId() Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
22+
* @method string getType() Type of chat, can be either "private ", "group", "supergroup" or "channel"
23+
* @method string getTitle() Optional. Title, for channels and group chats
24+
* @method string getUsername() Optional. Username, for private chats, supergroups and channels if available
25+
* @method string getFirstName() Optional. First name of the other party in a private chat
26+
* @method string getLastName() Optional. Last name of the other party in a private chat
27+
* @method ChatPhoto getPhoto() Optional. Chat photo. Returned only in getChat.
28+
* @method string getBio() Optional. Bio of the other party in a private chat. Returned only in getChat.
29+
* @method bool getHasPrivateForwards() Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.
30+
* @method bool getHasRestrictedVoiceAndVideoMessages() Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat.
31+
* @method bool getJoinToSendMessages() Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat.
32+
* @method bool getJoinByRequest() Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat.
33+
* @method string getDescription() Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
34+
* @method string getInviteLink() Optional. Chat invite link, for groups, supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.
35+
* @method Message getPinnedMessage() Optional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
36+
* @method ChatPermissions getPermissions() Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
37+
* @method int getSlowModeDelay() Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user. Returned only in getChat.
38+
* @method int getMessageAutoDeleteTime() Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.
39+
* @method bool getHasProtectedContent() Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat.
40+
* @method string getStickerSetName() Optional. For supergroups, name of group sticker set. Returned only in getChat.
41+
* @method bool getCanSetStickerSet() Optional. True, if the bot can change the group sticker set. Returned only in getChat.
42+
* @method int getLinkedChatId() Optional. Unique identifier for the linked chat. Returned only in getChat.
43+
* @method ChatLocation getLocation() Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.
4344
*/
4445
class Chat extends Entity
4546
{

0 commit comments

Comments
 (0)