@@ -27,13 +27,17 @@ class Chat extends BaseType implements TypeInterface
27
27
'username ' => true ,
28
28
'first_name ' => true ,
29
29
'last_name ' => true ,
30
- 'all_members_are_administrators ' => true ,
31
30
'photo ' => ChatPhoto::class,
31
+ 'bio ' => true ,
32
32
'description ' => true ,
33
33
'invite_link ' => true ,
34
34
'pinned_message ' => Message::class,
35
+ 'permissions ' => ChatPermissions::class,
36
+ 'slow_mode_delay ' => true ,
35
37
'sticker_set_name ' => true ,
36
- 'can_set_sticker_set ' => true
38
+ 'can_set_sticker_set ' => true ,
39
+ 'linked_chat_id ' => true ,
40
+ 'location ' => ChatLocation::class
37
41
];
38
42
39
43
/**
@@ -78,15 +82,20 @@ class Chat extends BaseType implements TypeInterface
78
82
*/
79
83
protected $ lastName ;
80
84
81
- protected $ allMembersAreAdministrators ;
82
-
83
85
/**
84
86
* Optional. Chat photo. Returned only in getChat.
85
87
*
86
88
* @var ChatPhoto
87
89
*/
88
90
protected $ photo ;
89
91
92
+ /**
93
+ * Optional. Bio of the other party in a private chat. Returned only in getChat
94
+ *
95
+ * @var string
96
+ */
97
+ protected $ bio ;
98
+
90
99
/**
91
100
* Optional. Description, for supergroups and channel chats. Returned only in getChat.
92
101
*
@@ -108,6 +117,21 @@ class Chat extends BaseType implements TypeInterface
108
117
*/
109
118
protected $ pinnedMessage ;
110
119
120
+ /**
121
+ * Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
122
+ *
123
+ * @var ChatPermissions
124
+ */
125
+ protected $ permissions ;
126
+
127
+ /**
128
+ * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged
129
+ * user. Returned only in getChat.
130
+ *
131
+ * @var int
132
+ */
133
+ protected $ slowModeDelay ;
134
+
111
135
/**
112
136
* Optional. For supergroups, name of group sticker set. Returned only in getChat.
113
137
*
@@ -122,6 +146,23 @@ class Chat extends BaseType implements TypeInterface
122
146
*/
123
147
protected $ canSetStickerSet ;
124
148
149
+ /**
150
+ * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice
151
+ * versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming
152
+ * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64
153
+ * bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.
154
+ *
155
+ * @var int
156
+ */
157
+ protected $ linkedChatId ;
158
+
159
+ /**
160
+ * Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.
161
+ *
162
+ * @var ChatLocation
163
+ */
164
+ protected $ location ;
165
+
125
166
/**
126
167
* @return int|string
127
168
*/
@@ -225,35 +266,35 @@ public function setLastName($lastName)
225
266
}
226
267
227
268
/**
228
- * @return mixed
269
+ * @return ChatPhoto
229
270
*/
230
- public function getAllMembersAreAdministrators ()
271
+ public function getPhoto ()
231
272
{
232
- return $ this ->allMembersAreAdministrators ;
273
+ return $ this ->photo ;
233
274
}
234
275
235
276
/**
236
- * @param mixed $allMembersAreAdministrators
277
+ * @param ChatPhoto $photo
237
278
*/
238
- public function setAllMembersAreAdministrators ( $ allMembersAreAdministrators )
279
+ public function setPhoto ( $ photo )
239
280
{
240
- $ this ->allMembersAreAdministrators = $ allMembersAreAdministrators ;
281
+ $ this ->photo = $ photo ;
241
282
}
242
283
243
284
/**
244
- * @return ChatPhoto
285
+ * @return string
245
286
*/
246
- public function getPhoto ()
287
+ public function getBio ()
247
288
{
248
- return $ this ->photo ;
289
+ return $ this ->bio ;
249
290
}
250
291
251
292
/**
252
- * @param ChatPhoto $photo
293
+ * @param string $bio
253
294
*/
254
- public function setPhoto ( $ photo )
295
+ public function setBio ( $ bio )
255
296
{
256
- $ this ->photo = $ photo ;
297
+ $ this ->bio = $ bio ;
257
298
}
258
299
259
300
/**
@@ -304,6 +345,38 @@ public function setPinnedMessage($pinnedMessage)
304
345
$ this ->pinnedMessage = $ pinnedMessage ;
305
346
}
306
347
348
+ /**
349
+ * @return ChatPermissions
350
+ */
351
+ public function getPermissions ()
352
+ {
353
+ return $ this ->permissions ;
354
+ }
355
+
356
+ /**
357
+ * @param ChatPermissions $permissions
358
+ */
359
+ public function setPermissions ($ permissions )
360
+ {
361
+ $ this ->permissions = $ permissions ;
362
+ }
363
+
364
+ /**
365
+ * @return int
366
+ */
367
+ public function getSlowModeDelay ()
368
+ {
369
+ return $ this ->slowModeDelay ;
370
+ }
371
+
372
+ /**
373
+ * @param int $slowModeDelay
374
+ */
375
+ public function setSlowModeDelay ($ slowModeDelay )
376
+ {
377
+ $ this ->slowModeDelay = $ slowModeDelay ;
378
+ }
379
+
307
380
/**
308
381
* @return string
309
382
*/
@@ -335,4 +408,36 @@ public function setCanSetStickerSet($canSetStickerSet)
335
408
{
336
409
$ this ->canSetStickerSet = $ canSetStickerSet ;
337
410
}
411
+
412
+ /**
413
+ * @return int
414
+ */
415
+ public function getLinkedChatId ()
416
+ {
417
+ return $ this ->linkedChatId ;
418
+ }
419
+
420
+ /**
421
+ * @param int $linkedChatId
422
+ */
423
+ public function setLinkedChatId ($ linkedChatId )
424
+ {
425
+ $ this ->linkedChatId = $ linkedChatId ;
426
+ }
427
+
428
+ /**
429
+ * @return ChatLocation
430
+ */
431
+ public function getLocation ()
432
+ {
433
+ return $ this ->location ;
434
+ }
435
+
436
+ /**
437
+ * @param ChatLocation $location
438
+ */
439
+ public function setLocation ($ location )
440
+ {
441
+ $ this ->location = $ location ;
442
+ }
338
443
}
0 commit comments