Commit Graph

84 Commits

Author SHA1 Message Date
levlam
c0eb211476 Locally fix until_date before sending it to the server. 2022-05-12 14:38:45 +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
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
de6c4648d4 Simplify get_administrator_rights/get_restricted_rights. 2022-03-22 13:30:55 +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
329e351e09 Simplify DialogParticipantStatus constructors. 2022-03-19 20:34:16 +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
2c38e261d2 Reuse RestrictedRights::get_chat_banned_rights. 2022-03-18 18:27:10 +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
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
c69293e1cc Rename voice chats to video chats. 2021-10-14 15:44:21 +03:00
levlam
05b59cc63b Improve DialogParticipant field names. 2021-10-29 14:39:07 +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
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
cdb06da112 Add "; pass null" annotations for expected to be null request parameters. 2021-09-28 17:31:00 +03:00
levlam
d229c5daed Fix handling of empty permissions in chatMemberStatusRestricted. 2021-08-21 19:57:01 +03:00
levlam
adedc7ad4f Support chats as members of other chats. 2021-03-22 04:03:24 +03:00
levlam
06791bbbf3 Update layer to 126. 2021-03-21 21:55:21 +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
642a9a9efb Update layer to 124. 2021-02-02 02:00:28 +03:00
levlam
41f6003b09 Fix supergroupMembersFilterMention with non-zero thread. 2021-01-31 20:46:51 +03:00
levlam
60673fea78 Add get_chat_members_object method. 2021-01-25 02:07:38 +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
47a00d257b Fix basic group administrator rights. 2020-12-14 22:30:58 +03:00
levlam
593a2bfb3e Improve administrator rights name. 2020-12-08 03:19:56 +03:00
levlam
3e13b0cd31 Add can_manage_calls admin right. 2020-11-24 02:43:14 +03:00
levlam
ccb0a4f63c Update layer to 122. 2020-11-23 18:48:55 +03:00