Commit Graph

79 Commits

Author SHA1 Message Date
levlam
a885f3bc63 Simplify checks in AdministratorRights. 2022-10-23 12:15:09 +03:00
levlam
903236bf78 Fix wrong value of status.can_be_edited. 2022-07-18 21:14:04 +03:00
levlam
782670c7db Fix anonymous administrator right. 2022-04-17 23:36:37 +03:00
levlam
6c0438fc69 Minor fixes. 2022-04-07 20:38:22 +03:00
levlam
e2f9cc399f Pass correct ChannelType to DialogParticipant constructor. 2022-04-04 16:29:46 +03:00
levlam
c3996b4726 Always adjust administrator rights for supergroups and channels. 2022-04-04 16:19:41 +03:00
levlam
99b79911e0 Remove verbose DialogParticipantStatus::Administrator. 2022-04-04 15:59:30 +03:00
levlam
7f587c24d9 Replace get_restricted_rights with RestrictedRights constructors. 2022-04-04 14:13:51 +03:00
levlam
4a50db52d8 Replace get_administrator_rights with AdministratorRights constructor. 2022-04-04 13:58:14 +03:00
levlam
dd6a741f8a Add setDefaultGroupAdministratorRights/setDefaultChannelAdministratorRights. 2022-04-02 15:32:04 +03:00
levlam
68db9a03cc Fix copy-paste bug. 2022-03-31 15:33:55 +03:00
levlam
afa00d8b00 Add default administrator rights to botInfo. 2022-03-22 14:52:27 +03:00
levlam
ef8d959e98 Add td_api::chatAdministratorRights. 2022-03-22 13:17:48 +03:00
levlam
f743763da4 Reuse get_restricted_rights. 2022-03-22 12:49:58 +03:00
levlam
180c2e34fd Add simpler DialogParticipantStatus constructors. 2022-03-22 12:38:44 +03:00
levlam
17f407abfb Move is_anonymous to AdministratorRights. 2022-03-22 12:09:43 +03:00
levlam
4d13e1354e Move ChannelParticipantFilter to separate header. 2022-03-19 21:53:33 +03:00
levlam
26c18680f2 Move DialogParticipantFilter to separate header. 2022-03-19 21:37:46 +03:00
levlam
a8df27c3d9 Add get_administrator_rights function. 2022-03-19 01:22:45 +03:00
levlam
5d71289b72 Move get_dialog_participant_status to DialogParticipantStatus constructor. 2022-03-18 19:13:22 +03:00
levlam
f8e8bc6035 Move restriction flags to RestrictedRights. 2022-03-18 18:47:34 +03:00
levlam
0c9943c42e Remove separate GET_RESTRICTED_RIGHTS flags. 2022-03-18 18:14:39 +03:00
levlam
d913e6ec0e Add get_effective_restricted_rights. 2022-03-18 17:50:55 +03:00
levlam
07b4f6c16d Remove duplicate administrator flags from DialogParticipantStatus. 2022-03-18 16:56:22 +03:00
levlam
d97d20a420 Reuse AdministratorRights get_ methods. 2022-03-18 16:25:07 +03:00
levlam
163bfbcc7a Reuse AdministratorRights and RestrictedRights methods. 2022-03-18 16:07:14 +03:00
levlam
aa80935b73 Add class AdministratorRights. 2022-03-18 15:44:41 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
05b59cc63b Improve DialogParticipant field names. 2021-10-29 14:39:07 +03:00
levlam
d06aa6535d Make DialogParticipantsFilter fields private. 2021-10-23 23:41:13 +03:00
levlam
ed45735de4 Add DialogParticipant::private_member. 2021-10-23 23:22:54 +03:00
levlam
7d4442347d Add DialogParticipantsFilter::is_dialog_participant_suitable. 2021-10-23 22:32:11 +03:00
levlam
1c59f37ca9 Move some methods inside DialogParticipantsFilter class. 2021-10-23 22:23:59 +03:00
levlam
47d4c08de2 Improve field names style. 2021-10-23 21:56:37 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
969b52cc82 Minor improvements. 2021-04-09 02:35:50 +03:00
levlam
adedc7ad4f Support chats as members of other chats. 2021-03-22 04:03:24 +03:00
levlam
984e79b7f7 Drop channel invite link, only when corresponding administrator right is removed. 2021-03-28 02:35:11 +03:00
levlam
813b141148 Fix channelParticipantSelf handling. 2021-03-01 02:33:38 +03:00
levlam
ada09fecee Add can_manage_chat administrator privilege. 2021-02-19 15:58:14 +03:00
levlam
ad43c83bce Add DialogParticipant constructor from telegram_api::ChatParticipant. 2021-02-19 01:38:16 +03:00
levlam
60673fea78 Add get_chat_members_object method. 2021-01-25 02:07:38 +03:00
levlam
ef160aa2c0 Add struct DialogParticipants. 2021-01-25 02:00:57 +03:00
levlam
52b7f8f118 Add DialogParticipantFilter logging. 2021-01-16 11:56:02 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
37f9d6a42d Fix new rights in created chats. 2020-12-07 00:47:48 +03:00
levlam
3e13b0cd31 Add can_manage_calls admin right. 2020-11-24 02:43:14 +03:00
levlam
4b62900c0d Add chatMembersFilterMention.
GitOrigin-RevId: d84138594d1546275e5fea46d9cef42eac69449b
2020-10-19 14:06:35 +03:00
levlam
3f143b013a Use class for DialogParticipantsFilter.
GitOrigin-RevId: 56fc4ee7a35412db965c668f6a116ae29074f0a4
2020-10-19 01:48:31 +03:00
levlam
80d19432bf Add supergroupMembersFilterMention.
GitOrigin-RevId: 370a3880a371879aaefb41ad520917db3e33d679
2020-10-19 01:33:31 +03:00