Commit Graph

634 Commits

Author SHA1 Message Date
levlam
1d3e72aa9d Improve constant names. 2021-07-05 19:17:26 +03:00
levlam
4b0bda767c Add SecretChatLayer.h. 2021-07-05 05:42:37 +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
eb134b02f2 Improve error messages. 2021-06-25 21:21:17 +03:00
levlam
f8f03db0ce Improve error message. 2021-06-24 23:11:23 +03:00
levlam
7bf14a2405 Ban only for 60 seconds if unbanning is planned. 2021-06-23 15:40:24 +03:00
levlam
9628668def Minor improvements. 2021-06-23 03:22:23 +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
37d10c0be4 Add bot_user_id to botCommands. 2021-06-21 01:32:29 +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
cec785022a Update layer 129. 2021-06-18 18:26:11 +03:00
levlam
9440925711 Move some classes inside corresponding managers. 2021-06-18 03:06:20 +03:00
levlam
ed7a7e5eaf Check UTF-8 correctness of strings before adding them to Hints. 2021-06-17 23:29:13 +03:00
levlam
d069de6a8b Drop channel pts in inaccessible channels. 2021-06-16 02:54:17 +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
7e61f9c95c Improve error message. 2021-05-31 20:06:08 +03:00
levlam
f156da28a0 Don't update ChannelFull.participant_count by unknown Channel.participant_count. 2021-05-29 23:35:26 +03:00
levlam
98982374ee Don't store userProfilePhoto.stripped_thumb_. 2021-05-27 21:26:24 +03:00
levlam
d7c739dc70 Ignore document and chat photo minithumbnails by bots. 2021-05-27 21:15:30 +03:00
levlam
2d534e48d6 Move get_dialog_invite_link_hash to LinkManager. 2021-05-27 20:31:06 +03:00
levlam
4bb76a7b6f Update layer to 128. Remove photo volume_id/local_id. 2021-04-16 17:43:51 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
0d41ba340f Ensure that ChannelFull isn't loaded in on_channel_status_changed and on_channel_username_changed. 2021-05-09 18:14:43 +03:00
levlam
c0c5e24b9b Drop slow_mode_delay in saved to database ChannelFull if slow mode is disabled in the channel. 2021-05-09 03:23:45 +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
26dc0ad930 Update layer to 127. 2021-03-26 18:15:21 +03:00
levlam
f6b1ea8bdb Forcely create Dialog in get_chat_member_object. 2021-03-26 04:20:11 +03:00
levlam
7a65988f29 Check that other chats are only banned or unbanned. 2021-03-26 04:15:13 +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
b349696e7f Force inputPeerChannel creation for bots. 2021-03-25 01:10:34 +03:00
levlam
206cd55479 Support chat-members in getChatMember. 2021-03-24 23:40:13 +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
21607d9a48 Don't allow to send messages to @replies chat. 2021-04-13 00:23:13 +03:00