You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Entities/Chat.php
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@
24
24
* @method string getUsername() Optional. Username, for private chats, supergroups and channels if available
25
25
* @method string getFirstName() Optional. First name of the other party in a private chat
26
26
* @method string getLastName() Optional. Last name of the other party in a private chat
27
-
* @method bool getAllMembersAreAdministrators() Optional. True if a group has ‘All Members Are Admins’ enabled. {@deprecated} {@see Chat::getPermissions()}
28
27
* @method ChatPhoto getPhoto() Optional. Chat photo. Returned only in getChat.
29
28
* @method string getDescription() Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
30
29
* @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.
@@ -115,4 +114,17 @@ public function isChannel()
115
114
{
116
115
return$this->getType() === 'channel';
117
116
}
117
+
118
+
/**
119
+
* Optional. True if a group has 'All Members Are Admins' enabled.
* @method string getText() Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed
24
28
* @method bool getRequestContact() Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
25
29
* @method bool getRequestLocation() Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only
Copy file name to clipboardExpand all lines: src/Entities/Message.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
* @method string getForwardSignature() Optional. For messages forwarded from channels, signature of the post author if present
32
32
* @method string getForwardSenderName() Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages
33
33
* @method int getForwardDate() Optional. For forwarded messages, date the original message was sent in Unix time
34
-
* @method Message 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.
34
+
* @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.
35
35
* @method int getEditDate() Optional. Date the message was last edited in Unix time
36
36
* @method string getMediaGroupId() Optional. The unique identifier of a media message group this message belongs to
37
37
* @method string getAuthorSignature() Optional. Signature of the post author for messages in channels
0 commit comments