1
1
<?php
2
2
3
- declare (strict_types = 1 );
3
+ declare (strict_types= 1 );
4
4
5
5
namespace unreal4u \TelegramAPI \Telegram \Types ;
6
6
@@ -27,9 +27,52 @@ class ChatPermissions extends TelegramTypes
27
27
* implies can_send_messages
28
28
*
29
29
* @var bool
30
+ * @deprecated Use more granual permissions instead (Bot API 6.5, February 3, 2023 https://core.telegram.org/bots/api-changelog#february-3-2023)
30
31
*/
31
32
public $ can_send_media_messages ;
32
33
34
+ /**
35
+ * Optional. True, if the user is allowed to send audios
36
+ *
37
+ * @var bool
38
+ */
39
+ public $ can_send_audios ;
40
+
41
+ /**
42
+ * Optional. True, if the user is allowed to send documents
43
+ *
44
+ * @var bool
45
+ */
46
+ public $ can_send_documents ;
47
+
48
+ /**
49
+ * Optional. True, if the user is allowed to send photos
50
+ *
51
+ * @var bool
52
+ */
53
+ public $ can_send_photos ;
54
+
55
+ /**
56
+ * Optional. True, if the user is allowed to send videos
57
+ *
58
+ * @var bool
59
+ */
60
+ public $ can_send_videos ;
61
+
62
+ /**
63
+ * Optional. True, if the user is allowed to send video notes
64
+ *
65
+ * @var bool
66
+ */
67
+ public $ can_send_video_notes ;
68
+
69
+ /**
70
+ * Optional. True, if the user is allowed to send voice notes
71
+ *
72
+ * @var bool
73
+ */
74
+ public $ can_send_voice_notes ;
75
+
33
76
/**
34
77
* Optional. True, if the user is allowed to send polls, implies can_send_messages
35
78
*
@@ -74,4 +117,12 @@ class ChatPermissions extends TelegramTypes
74
117
* @var bool
75
118
*/
76
119
public $ can_pin_messages ;
120
+
121
+ /**
122
+ * Optional. True, if the user is allowed to create forum topics. If omitted defaults to the
123
+ * value of can_pin_messages
124
+ *
125
+ * @var bool
126
+ */
127
+ public $ can_manage_topics ;
77
128
}
0 commit comments