1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* This file is part of the TelegramBot package. |
5
|
|
|
* |
6
|
|
|
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Longman\TelegramBot\Entities; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Class ChatFullInfo |
16
|
|
|
* |
17
|
|
|
* This object contains full information about a chat. |
18
|
|
|
* |
19
|
|
|
* @link https://core.telegram.org/bots/api#chatfullinfo |
20
|
|
|
* |
21
|
|
|
* @method string getDescription() Optional. Description, for groups, supergroups and channel chats. |
22
|
|
|
* @method string getInviteLink() Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. |
23
|
|
|
* @method Message getPinnedMessage() Optional. The most recent pinned message (by sending date). Returned only in getChat. |
24
|
|
|
* @method ChatPermissions getPermissions() Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. |
25
|
|
|
* @method int getSlowModeDelay() Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat. |
26
|
|
|
* @method int getUnrestrictBoostCount() Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. |
27
|
|
|
* @method int getMessageAutoDeleteTime() Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat. |
28
|
|
|
* @method bool getHasAggressiveAntiSpamEnabled() Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. |
29
|
|
|
* @method bool getHasHiddenMembers() Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat. |
30
|
|
|
* @method bool getHasProtectedContent() Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. |
31
|
|
|
* @method bool getHasVisibleHistory() Optional. True, if new chat members will have access to old messages; available only to chat administrators. |
32
|
|
|
* @method string getStickerSetName() Optional. For supergroups, name of group sticker set. Returned only in getChat. |
33
|
|
|
* @method bool getCanSetStickerSet() Optional. True, if the bot can change the group sticker set. Returned only in getChat. |
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
|
|
|
* @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 ChatLocation getLocation() Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. |
37
|
|
|
* @method int getMaxReactionCount() Optional. The maximum number of reactions that can be set on a message in the chat |
38
|
|
|
*/ |
39
|
|
|
class ChatFullInfo extends Chat |
40
|
|
|
{ |
41
|
|
|
/** |
42
|
|
|
* {@inheritdoc} |
43
|
|
|
*/ |
44
|
|
|
protected function subEntities(): array |
45
|
|
|
{ |
46
|
|
|
return array_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 |
52
|
|
|
]); |
53
|
|
|
} |
54
|
|
|
} |
55
|
|
|
|