Commit Graph

903 Commits

Author SHA1 Message Date
levlam
6ab91f2712 Update chat join request after GetChatJoinRequestsQuery. 2021-11-01 23:03:41 +03:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
4533f79338 Don't generate MASK for parsed object/vector fields. 2021-11-01 20:48:06 +03:00
levlam
39b5db357e Add updateNewChatJoinRequest. 2021-10-28 22:49:56 +03:00
levlam
97243b53e4 Allow to create and edit chat invite links with title. 2021-10-27 13:04:34 +03:00
levlam
8d458f3038 Add chatJoinRequestsInfo with user identifiers. 2021-10-26 20:51:06 +03:00
levlam
34d77c7feb Fix drop of pending_join_request_count. 2021-10-14 00:34:28 +03:00
levlam
0a9f6b1c91 Add approve/declineCjatJoinRequest. 2021-10-13 23:10:47 +03:00
levlam
1a7f4b4d3e Add td_api::getChatJoinRequests. 2021-10-13 22:33:31 +03:00
levlam
d6502458f5 Allow to get option "is_location_visible". 2021-10-12 22:05:14 +03:00
levlam
250e593e3e Add comment. 2021-10-12 20:05:36 +03:00
levlam
0f6247f856 Nullify pending_join_request_count if have no enough rights. 2021-10-12 19:39:03 +03:00
levlam
e49ae700b6 Add chat.pending_join_request_count. 2021-10-12 18:11:17 +03:00
levlam
a4aa509308 Add requested_ flag check. 2021-10-09 16:53:29 +03:00
levlam
64d572bcbe Allow creation and edit of invite links, requiring approval. 2021-10-09 14:20:48 +03:00
levlam
5d9a224386 Add chatInviteLinkMember.approver_user_id. 2021-10-09 13:51:37 +03:00
levlam
63d86176f2 Add chatInviteLinkInfo.description/requires_approval. 2021-10-09 13:19:38 +03:00
levlam
23775700ac Update layer to 134. 2021-10-08 13:45:10 +03:00
levlam
05b59cc63b Improve DialogParticipant field names. 2021-10-29 14:39:07 +03:00
levlam
393598314a Simplify search_private_chat_participants. 2021-10-23 23:37:23 +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
c24501f2d9 Reduce "this" usages. 2021-10-23 21:17:00 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
f35afe23c8 Minor warning fixes. 2021-10-18 12:57:13 +03:00
levlam
3abac23287 Fix file_reference repair for ChatFull/ChannelFull photos. 2021-10-16 23:37:02 +03:00
levlam
0fa991599e Add filter name to log. 2021-10-16 22:14:48 +03:00
levlam
7832b354a8 Imptove logging. 2021-10-12 11:30:41 +03:00
levlam
d0ac845c72 Fix misprint. 2021-10-08 14:12:37 +03:00
levlam
328c5b57d2 Add Global::request_aborted_error. 2021-10-07 16:36:21 +03:00
levlam
3b794126d8 Avoid G usage in lambda promises. 2021-10-07 15:28:52 +03:00
levlam
c85f993de8 Improve captured actor_id names. 2021-10-07 13:38:49 +03:00
levlam
4b41d620c5 Use send_closure instead of raw call. 2021-10-06 23:33:18 +03:00
levlam
9e1147bc89 Fix SleepActor usages. 2021-10-06 20:22:50 +03:00
levlam
88886f3676 Check close_flag just before accessing Td pointer. 2021-10-06 14:39:01 +03:00
levlam
13c48e590d Fix profile photo reuploading. 2021-10-01 19:19:14 +03:00
levlam
4f9b35ea72 Use get_contact in importContacts and changeImportedContacts. 2021-09-30 14:18:01 +03:00
levlam
44efa70789 Pass Contact to add_contact. 2021-09-30 13:53:16 +03:00
levlam
95d60959b1 Remove redundant checks for is_bot. 2021-09-24 11:07:12 +03:00
levlam
d6f3d9f08a Use error code 400 instead of small error codes. 2021-09-24 10:59:51 +03:00
levlam
2ec2e4d78f Use "set"/"toogle" instead of "change". 2021-09-24 10:42:39 +03:00
levlam
f2908bb7e5 Allow to add non-members as administrators in basic groups using setChatMemberStatus. 2021-09-24 10:20:50 +03:00
levlam
a3c8da47a0 Return void from load_*_full. 2021-09-23 18:52:39 +03:00
levlam
d032ca2ab2 Support adding basic group members through setChatMemberStatus. 2021-09-23 18:39:13 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
a3fefcd18b Add (disabled) logging on inconsistent update*Participant. 2021-09-15 18:36:45 +03:00
levlam
a4f66c69cb Add td_api::getMessageViewers. 2021-09-03 16:14:03 +03:00
levlam
41c391f140 Update layer to 133. 2021-09-03 12:27:59 +03:00
levlam
9bf5b5343b Prevent partial updateBasicGroupFullInfo. 2021-09-09 15:41:50 +03:00
levlam
8117853ea4 Add logging on partial update*FullInfo. 2021-09-07 18:20:34 +03:00
levlam
f59ba4b5e5 Avoid duplicate UserFull updates. 2021-09-07 18:02:03 +03:00
levlam
168399f21d Add source to update_*_full. 2021-09-07 17:41:56 +03:00
levlam
5cfabdd589 Add chat.theme_name. 2021-08-23 18:47:32 +03:00
levlam
8e7eba4f8c Reload ChannelFull in get_channel_statistics_dc_id. 2021-08-23 11:59:37 +03:00
levlam
828e1e22a0 Skip unneeded getFullChannel requests. 2021-08-23 11:10:46 +03:00
levlam
45790b144c Fix ChannelFull dependencies. 2021-08-11 16:52:34 +03:00
levlam
0dc42e4410 Add source to get_message_sender_object. 2021-08-03 01:58:02 +03:00
levlam
3b125ce511 Don't try to get full channel if it is inaccessible. 2021-08-02 06:20:59 +03:00
levlam
d1b985430c Add source to ContactsManager::load_user_full. 2021-08-02 06:14:59 +03:00
levlam
3156492c2f Add source to ContactsManager::load_channel_full. 2021-08-02 05:50:52 +03:00
levlam
a4e1839089 Generate only needed telegram_api full constructors. 2021-08-01 07:23:50 +03:00
levlam
4124f7e0f0 Fix ContactsManager::get_chat_participant. 2021-07-27 00:59:13 +03:00
levlam
2aa683bf4c Force binlog sync after logging in. 2021-07-26 21:07:23 +03:00
levlam
2b8c23fdac Call on_dialog_bots_updated after speculative changes. 2021-07-22 04:19:56 +03:00
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
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
levlam
1979b2b142 Ensure that participant_count is the same in Channel and ChannelFull. 2021-04-12 18:32:47 +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
d6015184ee Improve log message. 2021-04-08 02:55:17 +03:00
levlam
a0dcd2d9c2 Add optional source to have_dialog_force. 2021-04-08 00:51:32 +03:00
levlam
8039660cfe Reload objects from server if failed to resolve their dependencies. 2021-04-04 03:23:22 +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
ad495c0d0c Skip error logging for deleted bots. 2021-03-29 18:10:37 +03:00
levlam
b5655ddab6 Pass UserId to Contact::Contact. 2021-03-29 08:20:54 +03:00
levlam
7aa71edad2 Drop outdated *Full.invite_link stored in the database. 2021-03-28 03:36:14 +03:00
levlam
d74749c813 Drop basic group invite link if removed from administrators. 2021-03-28 03:25:08 +03:00
levlam
984e79b7f7 Drop channel invite link, only when corresponding administrator right is removed. 2021-03-28 02:35:11 +03:00
levlam
024601eb86 Don't call remove_dialog_access_by_invite_link on username change. 2021-03-28 02:07:38 +03:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
levlam
159c4f3f00 Remove race in default_join_as updating. 2021-03-08 15:27:47 +03:00
levlam
4eab57cd7b Add chat.default_join_voice_chat_as_chat_id. 2021-03-08 15:13:36 +03:00
levlam
f4ce6c9de9 Update bio of group call participants when it is changed. 2021-03-07 13:06:34 +03:00
levlam
dd4aac2f57 Init bio in fake updateGroupCallParticipant when joining call. 2021-03-07 01:54:45 +03:00
levlam
7a19e5dbe5 Support voice chat creation in channels. 2021-03-06 02:26:13 +03:00
levlam
92d8d1b9fd Improve log messages. 2021-03-09 01:06:38 +03:00
levlam
1c3290bada Fix warning. 2021-03-04 15:10:58 +03:00
levlam
de0a2a03e5 Return better error for empty invite links. 2021-03-01 02:57:14 +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
c5f84de9cd Support channel suggested actions. 2021-02-22 23:34: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
3774b13ca1 Add td_api::reportChatPhoto. 2021-02-19 19:11:27 +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
ad43c83bce Add DialogParticipant constructor from telegram_api::ChatParticipant. 2021-02-19 01:38:16 +03:00
levlam
7eb751083c Add can_inite_users right check just in case. 2021-02-18 16:24:22 +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
12ead50446 Add number of revoked invite link to chatInviteLinkCount. 2021-02-16 15:31:58 +03:00
levlam
cc50f3b143 Support receiving message TTL setting for all chat types. 2021-02-09 17:35:48 +03:00
levlam
bf42d62f1e Unify ResultHandler subclass names and logged name. 2021-02-08 15:56:08 +03:00
levlam
f46ff6e1cd Update permanent invite link after it is revoked. 2021-02-05 19:23:29 +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
levlam
22289fe68b Move struct definition back to header to fix SplitSource-build. 2021-02-12 16:53:40 +03:00
levlam
a3cdc8ffef Fix CE. 2021-02-04 16:49:41 +03:00
levlam
65a7715248 Pass promise to MessagesManager::on_dialog_deleted. 2021-02-04 16:01:04 +03:00
levlam
ad0c5e6783 Minor improvements. 2021-02-01 13:41:20 +03:00
levlam
cd3abdbeb2 Move dialog participant methods from MessagesManager to ContactsManager. 2021-01-27 02:16:17 +03:00
levlam
d246318a5c Update permanent invite link after replacing. 2021-01-26 23:59:09 +03:00
levlam
37ef232d47 Fix function name. 2021-01-26 23:15:33 +03:00
levlam
6878b41dc7 Update layer 123. 2021-01-26 13:07:03 +03:00
levlam
f77adeb28c Update layer 123. 2021-01-26 02:00:12 +03:00
levlam
01f613f7bf Add user/supergroup.is_fake. 2021-01-21 13:40:22 +03:00
levlam
da4d2b7636 Add separate banChatMember method. 2021-01-20 21:12:48 +03:00
levlam
7a45faff24 Add offset_date support in getChatInviteLinks. 2021-01-20 17:30:26 +03:00
levlam
1b7c6a9c31 Update layer 123. 2021-01-20 16:12:03 +03:00
levlam
dbf1253075 Replace deleteSupergroup with universal deleteChat method. 2021-01-20 14:49:18 +03:00
levlam
c7e4abb0a5 Add deleteChat method support. 2021-01-19 14:10:25 +03:00
levlam
936dbbb254 Add separate method for revoking chat invite links. 2021-01-18 22:35:28 +03:00
levlam
840c1ba8f9 Ignore *FullInfo without invite link. 2021-01-18 20:29:02 +03:00
levlam
3f91df5a47 Add td_api::deleteRevokedChatInviteLink. 2021-01-18 19:59:21 +03:00
levlam
93645ca29d Add td_api::deleteRevokedChatInviteLink. 2021-01-18 19:51:46 +03:00
levlam
d52c676912 Add getChatInviteLinks.is_revoked. 2021-01-18 19:32:53 +03:00
levlam
65bf9ad604 Improve field names and documentation. 2021-01-17 23:07:17 +03:00
levlam
3ae02a64c1 Make ContactsManager struct declarations private. 2021-01-16 19:23:57 +03:00
levlam
1941c0b962 Fix loading ChatFull/ChannelFull. 2021-01-14 23:40:18 +03:00
levlam
d5c0028e1e Add getChatInviteLinkUsers. 2021-01-14 23:21:23 +03:00
levlam
efc12342c2 Add getChatInviteLinks method. 2021-01-14 19:39:51 +03:00
levlam
9f37354951 Return full invite links in *FullInfo. 2021-01-13 19:14:08 +03:00
levlam
4761d7385c Move invite link methods to DialogInviteLink. 2021-01-13 18:30:58 +03:00
levlam
1816a6c7a5 Support permanent invite links. 2021-01-13 18:16:33 +03:00
levlam
5016197cf9 Load self when creating chat invite link. 2021-01-13 16:59:10 +03:00
levlam
3df10dc103 Check invite link validness. 2021-01-13 16:50:41 +03:00
levlam
b5cd03365d Add DialogInviteLink class. 2021-01-13 16:28:24 +03:00
levlam
87a2423f5a Add editChatInviteLink method. 2021-01-12 19:21:12 +03:00
levlam
0b7ce1c647 Update layer 123. Support new generateChatInviteLink. 2021-01-12 17:05:25 +03:00
levlam
3f856ccb46 Don't load dialog after ChatFull is loaded from database. 2021-01-25 17:58:19 +03:00
levlam
cec5f11d17 Don't save group administrators after basic group full is loaded from database. 2021-01-25 17:41:49 +03:00
levlam
d25edad06d Rewrite searchChatMembers and getSupergroupMembers implementation. 2021-01-25 17:34:45 +03:00
levlam
ef160aa2c0 Add struct DialogParticipants. 2021-01-25 02:00:57 +03:00
levlam
31265c93f1 Add ability to check whether a user is a mutual contact. 2021-01-21 16:49:41 +03:00
levlam
2348e175d9 Add source to get_chat_full_force. 2021-01-16 12:30:48 +03:00
levlam
db77165dad Optimize ContactsManager::search_among_users. 2021-01-16 03:14:15 +03:00
levlam
6b909386fd Simplify is_dialog_participant_suitable. 2021-01-08 02:01:49 +03:00
levlam
0ee37c5e64 Ensure that ChannelFull.member_count >= administrator_count after speculative update. 2021-01-05 15:18:15 +03:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
dbbfcd5d64 Update ChannelFull participant count only after channel is updated. 2021-01-01 02:46:37 +03:00
levlam
2394ccd29e Decrease max_participant_count to not update it for groups with 5000+ members. 2020-12-29 14:41:17 +03:00
levlam
c8668f224c Update ChannelFull.participant_count when channel.participant_count changes. 2020-12-25 18:06:54 +03:00
levlam
ce75097932 Increase ChannelFull.participant_count instead of decreasing administrator_count to guarantee that channel has no administrators more than participants. 2020-12-25 17:35:41 +03:00
levlam
3589676550 Minor fixes. 2020-12-22 15:51:57 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +03:00
levlam
3413e38a61 Fix can_be_muted flag. 2020-12-18 17:08:24 +03:00
levlam
8dd4fe3166 Separately apply versioned and unversioned group call updates. 2020-12-18 16:23:49 +03:00
levlam
415a64ff24 Allow loading channel participants without bot info. 2020-12-16 17:43:34 +03:00
levlam
d165a87b73 Reload group call if rights has changed. 2020-12-16 16:38:06 +03:00
levlam
babd4dc35d Add source to on_update_dialog_group_call. 2020-12-15 19:25:07 +03:00
levlam
47a00d257b Fix basic group administrator rights. 2020-12-14 22:30:58 +03:00
levlam
98241af35a Support voice chats in basic groups. 2020-12-14 17:33:02 +03:00
levlam
6ca15f18c8 Move voice chat-related fields to Dialog. 2020-12-14 00:36:44 +03:00
levlam
00eed8928c Move voice chat creation to GroupCallManager. 2020-12-13 15:18:33 +03:00
levlam
6fdf68bad4 Store DialogId in information about group call. 2020-12-13 14:52:07 +03:00
levlam
91d4b57713 Add recent group call speakers. 2020-12-06 10:40:26 +03:00
levlam
f3c8ae83c5 Update channel when its group call is changed. 2020-12-05 21:28:57 +03:00
levlam
bc5a3d2cec Add supergroup.is_voice_chat_empty flag. 2020-12-05 19:43:57 +03:00
levlam
eb9abbb9ab Save voice chat channel_id. 2020-12-04 12:40:51 +03:00
levlam
34e05375c1 Add GroupCallId class. 2020-12-03 19:52:50 +03:00
levlam
eeee625803 Rename createVoiceChat method. 2020-12-03 01:08:20 +03:00
levlam
e1271c7fa5 Add createChatGroupCall. 2020-11-26 10:56:13 +03:00
levlam
5d6e55e939 Add group_call_id to supergroupFullInfo. 2020-11-25 23:07:10 +03:00
levlam
cc47f9b63f Support updateGroupCall. 2020-11-25 17:04:32 +03:00
levlam
09b10c0ed1 Improve names of statistical classes. 2020-11-19 17:57:15 +03:00
levlam
398c7cfd52 Don't drop administrator count in non-admined supergroups. 2020-11-06 15:16:30 +03:00
levlam
c8949e264d Allow access to channel if it has linked channel, but we can't check access to it.
GitOrigin-RevId: 897e86d18ad2b3c829c4ac544320fa4ee4ebd31b
2020-10-31 19:40:08 +03:00
levlam
98ff412f7a Use get_channel_full_const in get methods to avoid unneeded getChannelFull requests.
GitOrigin-RevId: 1959c781b6c85667065e38af125a87186746a233
2020-10-31 15:47:40 +03:00
levlam
d28a7245ea Make can_get_channel_message_statistics const to prevent unneeded getChannelFull requests.
GitOrigin-RevId: 90121f149dfa5ec6e586b8932b8507dd25614921
2020-10-31 15:28:55 +03:00
levlam
974feddb4a Reload full chat info after pinned message is dropped.
GitOrigin-RevId: 6cbf3d217b5da21f050715ed290cb122d6a4ef2c
2020-10-28 14:25:27 +03:00
levlam
bc2de6e5c0 Fix td_api::userFullInfo field order.
GitOrigin-RevId: 420adf21e8be165f4783aa1aca4130fb579fa3c2
2020-10-24 16:42:17 +03:00
levlam
5442143aba Rename pinned_message_id to last_pinned_message_id.
GitOrigin-RevId: c30148f3559f4ebecd3988c4bddc6cff82da3557
2020-10-20 20:28:37 +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
9fb26c4ea2 Return back UserFull.is_blocked.
GitOrigin-RevId: 98bc31a64c4c644fd6bb9e6e895d521b17df5afa
2020-10-17 23:38:07 +03:00
levlam
af6fe68c00 Allow to pin messages in all private chats.
GitOrigin-RevId: b5f55c22a6ec5950f5b88b66726bce918112d57f
2020-10-15 17:21:15 +03:00
levlam
d968fd0bed Implement new chat action rules.
GitOrigin-RevId: 12214755c86adfee0a7b3ec5f6e39024364cdb99
2020-10-26 15:25:34 +03:00
levlam
a6f9fde223 Update built-in bot flags.
GitOrigin-RevId: f54618d393b39e14f1269c8237d971ff47402a72
2020-10-22 13:21:51 +03:00
levlam
348fdf1a31 Add "group_anonymous_bot_user_id" option.
GitOrigin-RevId: efb6ee569861df005a53fd0255c50fdfa0460382
2020-10-13 17:02:10 +03:00
levlam
c1309d7657 Do not return deleted secret chats and replace migrated basic groups with corresponding supergroups in recently found chats.
GitOrigin-RevId: e50390583e3956a4eb8fdb92ec8a82f04cc7914f
2020-10-12 11:33:16 +03:00