|
15 | 15 | *
|
16 | 16 | * @link https://core.telegram.org/bots/api#chat
|
17 | 17 | *
|
18 |
| - * @property int $id 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. |
19 |
| - * @property string $type Type of chat, can be either "private", "group", "supergroup" or "channel" |
20 |
| - * @property string $title Optional. Title, for channels and group chats |
21 |
| - * @property string $username Optional. Username, for private chats, supergroups and channels if available |
22 |
| - * @property string $first_name Optional. First name of the other party in a private chat |
23 |
| - * @property string $last_name Optional. Last name of the other party in a private chat |
24 |
| - * @property bool $all_members_are_administrators Optional. True if a group has ‘All Members Are Admins’ enabled. |
25 |
| - * @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. |
26 |
| - * @method string getType() Type of chat, can be either "private ", "group", "supergroup" or "channel" |
27 |
| - * @method string getTitle() Optional. Title, for channels and group chats |
28 |
| - * @method string getUsername() Optional. Username, for private chats, supergroups and channels if available |
29 |
| - * @method string getFirstName() Optional. First name of the other party in a private chat |
30 |
| - * @method string getLastName() Optional. Last name of the other party in a private chat |
31 |
| - * @method bool getAllMembersAreAdministrators() Optional. True if a group has ‘All Members Are Admins’ enabled. |
| 18 | + * @property int $id 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. |
| 19 | + * @property string $type Type of chat, can be either "private", "group", "supergroup" or "channel" |
| 20 | + * @property string $title Optional. Title, for channels and group chats |
| 21 | + * @property string $username Optional. Username, for private chats, supergroups and channels if available |
| 22 | + * @property string $first_name Optional. First name of the other party in a private chat |
| 23 | + * @property string $last_name Optional. Last name of the other party in a private chat |
| 24 | + * @property bool $all_members_are_administrators Optional. True if a group has ‘All Members Are Admins’ enabled. |
| 25 | + * @property ChatPhoto $photo Optional. Chat photo. Returned only in getChat. |
| 26 | + * @property string $description Optional. Description, for supergroups and channel chats. Returned only in getChat. |
| 27 | + * @property string $invite_link Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat. |
| 28 | + * @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. |
| 29 | + * @method string getType() Type of chat, can be either "private ", "group", "supergroup" or "channel" |
| 30 | + * @method string getTitle() Optional. Title, for channels and group chats |
| 31 | + * @method string getUsername() Optional. Username, for private chats, supergroups and channels if available |
| 32 | + * @method string getFirstName() Optional. First name of the other party in a private chat |
| 33 | + * @method string getLastName() Optional. Last name of the other party in a private chat |
| 34 | + * @method bool getAllMembersAreAdministrators() Optional. True if a group has ‘All Members Are Admins’ enabled. |
| 35 | + * @method ChatPhoto getPhoto() Optional. Chat photo. Returned only in getChat. |
| 36 | + * @method string getDescription() Optional. Description, for supergroups and channel chats. Returned only in getChat. |
| 37 | + * @method string getInviteLink() Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat. |
32 | 38 | */
|
33 | 39 | class Chat extends Entity
|
34 | 40 | {
|
| 41 | + /** |
| 42 | + * {@inheritdoc} |
| 43 | + */ |
| 44 | + public function subEntities() |
| 45 | + { |
| 46 | + return [ |
| 47 | + 'photo' => ChatPhoto::class, |
| 48 | + ]; |
| 49 | + } |
| 50 | + |
35 | 51 | public function __construct($data)
|
36 | 52 | {
|
37 | 53 | parent::__construct($data);
|
|
0 commit comments