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
* @method User getAffiliateUser() Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user
13
+
* @method Chat getAffiliateChat() Optional. The chat that received an affiliate commission if it was received by a chat
14
+
* @method int getCommissionPerMille() The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
15
+
* @method int getAmount() Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
16
+
* @method int getNanostarAmount() Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds
* @method bool getCanReply() Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours
13
+
* @method bool getCanReadMessages() Optional. True, if the bot can mark incoming private messages as read
14
+
* @method bool getCanDeleteSentMessages() Optional. True, if the bot can delete messages sent by the bot
15
+
* @method bool getCanDeleteAllMessages() Optional. True, if the bot can delete all private messages in managed chats
16
+
* @method bool getCanEditName() Optional. True, if the bot can edit the first and last name of the business account
17
+
* @method bool getCanEditBio() Optional. True, if the bot can edit the bio of the business account
18
+
* @method bool getCanEditProfilePhoto() Optional. True, if the bot can edit the profile photo of the business account
19
+
* @method bool getCanEditUsername() Optional. True, if the bot can edit the username of the business account
20
+
* @method bool getCanChangeGiftSettings() Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account
21
+
* @method bool getCanViewGiftsAndStars() Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account
22
+
* @method bool getCanConvertGiftsToStars() Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars
23
+
* @method bool getCanTransferAndUpgradeGifts() Optional. True, if the bot can transfer and upgrade gifts owned by the business account
24
+
* @method bool getCanTransferStars() Optional. True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts
25
+
* @method bool getCanManageStories() Optional. True, if the bot can post, edit and delete stories on behalf of the business account
Copy file name to clipboardExpand all lines: src/Entities/Chat.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@
28
28
* @method string getFirstName() Optional. First name of the other party in a private chat
29
29
* @method string getLastName() Optional. Last name of the other party in a private chat
30
30
* @method bool getIsForum() Optional. True, if the supergroup chat is a forum (has topics enabled)
31
+
* @method bool getIsDirectMessages() Optional. True, if the chat is the direct messages chat of a channel
31
32
* @method int getAccentColorId() Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.
32
33
* @method ChatPhoto getPhoto() Optional. Chat photo. Returned only in getChat.
33
34
* @method string[] getActiveUsernames() Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat.
Copy file name to clipboardExpand all lines: src/Entities/ChatAdministratorRights.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
* @method bool getCanEditStories() Optional. True, if the administrator can edit stories posted by other users; channels only
21
21
* @method bool getCanDeleteStories() Optional. True, if the administrator can delete stories posted by other users; channels only
22
22
* @method bool getCanManageTopics() Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
23
+
* @method bool getCanManageDirectMessages() Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
23
24
*
24
25
* @method $this setIsAnonymous(bool $is_anonymous) True, if the user's presence in the chat is hidden
25
26
* @method $this setCanManageChat(bool $can_manage_chat) True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege
@@ -36,6 +37,7 @@
36
37
* @method $this setCanEditStories(bool $can_edit_stories) Optional. True, if the administrator can edit stories posted by other users; channels only
37
38
* @method $this setCanDeleteStories(bool $can_delete_stories) Optional. True, if the administrator can delete stories posted by other users; channels only
38
39
* @method $this setCanManageTopics(bool $can_manage_topics) Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
40
+
* @method $this setCanManageDirectMessages(bool $can_manage_direct_messages) Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
Copy file name to clipboardExpand all lines: src/Entities/ChatFullInfo.php
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,14 @@
33
33
* @method bool getCanSetStickerSet() Optional. True, if the bot can change the group sticker set. Returned only in getChat.
34
34
* @method string getCustomEmojiStickerSetName() Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
35
35
* @method int getLinkedChatId() Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. Returned only in getChat.
36
+
* @method Chat getParentChat() Optional. Information about the corresponding channel chat; for direct messages chats only
36
37
* @method ChatLocation getLocation() Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.
38
+
* @method UserRating getRating() Optional. For private chats, the rating of the user if any
39
+
* @method UniqueGiftColors getUniqueGiftColors() Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
37
40
* @method int getMaxReactionCount() Optional. The maximum number of reactions that can be set on a message in the chat
41
+
* @method AcceptedGiftTypes getAcceptedGiftTypes() Optional. Information about types of gifts that are accepted by the chat or by the corresponding user for private chats
42
+
* @method bool getCanSendPaidMedia() Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
43
+
* @method int getPaidMessageStarCount() Optional. The number of Telegram Stars a general user have to pay to send a message to the chat
38
44
*/
39
45
class ChatFullInfo extends Chat
40
46
{
@@ -44,11 +50,10 @@ class ChatFullInfo extends Chat
44
50
protectedfunctionsubEntities(): array
45
51
{
46
52
returnarray_merge(parent::subEntities(), [
47
-
// Properties already defined in Chat.php and handled by its subEntities are inherited.
48
-
// Add or override here if ChatFullInfo has different types or new sub-entities.
49
-
// For example, if PinnedMessage in ChatFullInfo could be a different class than in Chat,
50
-
// or if new properties in ChatFullInfo are entities themselves.
51
-
// Based on the current structure, most of these are already covered by Chat.php
Copy file name to clipboardExpand all lines: src/Entities/ChatMember/ChatMemberAdministrator.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@
28
28
* @method bool getCanEditStories() Optional. True, if the administrator can edit stories posted by other users; channels only
29
29
* @method bool getCanDeleteStories() Optional. True, if the administrator can delete stories posted by other users; channels only
30
30
* @method bool getCanManageTopics() Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
31
+
* @method bool getCanManageDirectMessages() Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
31
32
* @method string getCustomTitle() Custom title for this user
32
33
*/
33
34
class ChatMemberAdministrator extends Entity implements ChatMember
0 commit comments