11<?php
22
3- declare (strict_types = 1 );
3+ declare (strict_types= 1 );
44
55namespace unreal4u \TelegramAPI \Telegram \Types ;
66
@@ -27,9 +27,52 @@ class ChatPermissions extends TelegramTypes
2727 * implies can_send_messages
2828 *
2929 * @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)
3031 */
3132 public $ can_send_media_messages ;
3233
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+
3376 /**
3477 * Optional. True, if the user is allowed to send polls, implies can_send_messages
3578 *
@@ -74,4 +117,12 @@ class ChatPermissions extends TelegramTypes
74117 * @var bool
75118 */
76119 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 ;
77128}
0 commit comments