diff options
Diffstat (limited to 'td/telegram/DialogParticipant.h')
| -rw-r--r-- | td/telegram/DialogParticipant.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/td/telegram/DialogParticipant.h b/td/telegram/DialogParticipant.h index 3249e904e..57e13990f 100644 --- a/td/telegram/DialogParticipant.h +++ b/td/telegram/DialogParticipant.h @@ -219,6 +219,8 @@ class RestrictedRights { RestrictedRights(const td_api::object_ptr<td_api::chatPermissions> &rights, ChannelType channel_type); + RestrictedRights(const td_api::object_ptr<td_api::communityPermissions> &rights); + RestrictedRights(bool can_send_messages, bool can_send_audios, bool can_send_documents, bool can_send_photos, bool can_send_videos, bool can_send_video_notes, bool can_send_voice_notes, bool can_send_stickers, bool can_send_animations, bool can_send_games, bool can_use_inline_bots, @@ -230,6 +232,8 @@ class RestrictedRights { td_api::object_ptr<td_api::chatPermissions> get_chat_permissions_object() const; + td_api::object_ptr<td_api::communityPermissions> get_community_permissions_object() const; + tl_object_ptr<telegram_api::chatBannedRights> get_chat_banned_rights() const; bool can_change_info_and_settings() const { |
