Commit Graph

325 Commits

Author SHA1 Message Date
levlam
58c99ed63a Don't ignore forcely loaded after close users and chats. 2021-07-19 04:27:44 +03:00
levlam
13fcffd711 Replace GetChatMemberRequest with REQUEST_PROMISE. 2021-07-19 04:17:29 +03:00
levlam
e649098194 Improve error messages for invalid member_id parameters. 2021-07-16 04:23:05 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
8b5a55c798 Update member restrictions before returning it in getChatMember. 2021-07-02 21:30:27 +03:00
levlam
f210906dca Support updateBotCommands. 2021-06-28 18:32:29 +03:00
levlam
9b85516cfd Move bot command handling functions to BotCommand.cpp. 2021-06-22 04:25:15 +03:00
levlam
e8b32d9b05 Add td_api::deleteCommands. 2021-06-22 04:17:44 +03:00
levlam
337dbc86d9 Remove class BotInfo. 2021-06-21 04:30:02 +03:00
levlam
9940dd74db Remove botInfo class from API. 2021-06-21 04:14:29 +03:00
levlam
1904aa77b1 Add bot_commands to *Full. 2021-06-21 04:01:13 +03:00
levlam
5f9fd502b7 Replace botInfo with commands in userFullInfo. 2021-06-21 02:36:04 +03:00
levlam
f165429143 Add classes BotCommand and BotCommands. 2021-06-21 02:08:11 +03:00
levlam
d9dc6f875d Move bot description from BotInfo to UserFull. 2021-06-21 01:12:34 +03:00
levlam
1202d55e27 Add getCommands method. 2021-06-19 04:18:02 +03:00
levlam
62a543cb35 Add BotCommandScope to setCommands. 2021-06-19 04:00:23 +03:00
levlam
9440925711 Move some classes inside corresponding managers. 2021-06-18 03:06:20 +03:00
levlam
1e8724127a Add cache of channel participants for bots-administrators. 2021-06-12 23:53:14 +03:00
levlam
6f51690275 Add ContactsManager::on_get_channel_participant. 2021-06-11 20:02:49 +03:00
levlam
411d30e1c7 Remove Td::on_channel_unban_timeout proxy. 2021-06-10 21:56:05 +03:00
levlam
4a13e791bb Don't load ChannelFull from database in invalidate_channel_full. 2021-05-09 03:21:18 +03:00
levlam
25a6cb07bc Add more checks. 2021-05-09 02:53:15 +03:00
levlam
14fc0898ad Support banning and unbanning channels and supergroups. 2021-03-26 04:11:30 +03:00
levlam
f28af4ab20 Add ContactsManager::get_participant_dialog_id. 2021-03-26 03:17:30 +03:00
levlam
ffc847dbf5 Replace search_among_users with search_among_dialogs. 2021-03-26 02:39:24 +03:00
levlam
206cd55479 Support chat-members in getChatMember. 2021-03-24 23:40:13 +03:00
levlam
a83362c4d1 Add source to on_load_channel_full_from_database. 2021-04-12 04:51:01 +03:00
levlam
e72863ff84 Drop repair_request_version after failed GetChannelFullQuery. 2021-04-12 04:20:43 +03:00
levlam
105542fc9a Speculatively update participant count when joining/leaving channels. 2021-04-12 03:54:07 +03:00
levlam
13a80bc4e8 Use send_closure_later to avoid cycles in add_message_to_dialog. 2021-03-29 22:36:29 +03:00
levlam
984e79b7f7 Drop channel invite link, only when corresponding administrator right is removed. 2021-03-28 02:35:11 +03:00
levlam
dd4aac2f57 Init bio in fake updateGroupCallParticipant when joining call. 2021-03-07 01:54:45 +03:00
levlam
1c3290bada Fix warning. 2021-03-04 15:10:58 +03:00
levlam
813b141148 Fix channelParticipantSelf handling. 2021-03-01 02:33:38 +03:00
levlam
18fc612b3b Rename administrator_user_id to creator_user_id. 2021-02-25 16:02:07 +03:00
levlam
c733f8ed34 Minor improvements. 2021-02-25 15:56:26 +03:00
levlam
1e7795354d Add td_api::getChatInviteLink. 2021-02-24 22:25:10 +03:00
levlam
332b7a6edb Support dismissing of chat-specific suggested actions. 2021-02-22 19:38:40 +03:00
levlam
b67bafb23c Add td_api::suggestedActionConvertToBroadcastGroup. 2021-02-22 18:06:18 +03:00
levlam
c07a1dac22 Unify UserFull/ChatFull/ChannelFull variable names. 2021-02-20 22:20:02 +03:00
levlam
62a4c0c58d Add updateChatMember. 2021-02-19 13:57:46 +03:00
levlam
fd190bc9bd Process updateChatParticipant and updateBotStopped. 2021-02-19 02:16:50 +03:00
levlam
9b62afbea2 Add td_api::toggleSupergroupIsBroadcastGroup. 2021-02-17 01:06:35 +03:00
levlam
5955b43d88 Add supergroup.is_broadcast_group flag. 2021-02-16 18:27:17 +03:00
levlam
cc50f3b143 Support receiving message TTL setting for all chat types. 2021-02-09 17:35:48 +03:00
levlam
4cb8af0584 Support revoking permanent chat invite links. 2021-02-05 18:56:44 +03:00
levlam
342b4e45ca Support deletion of all revoked invite links created by other administrator. 2021-02-05 02:17:12 +03:00
levlam
f2f68aa3b3 Add td_api::getChatInviteLinkCounts. 2021-02-02 19:23:45 +03:00
levlam
642a9a9efb Update layer to 124. 2021-02-02 02:00:28 +03:00