Commit Graph

334 Commits

Author SHA1 Message Date
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
levlam
22289fe68b Move struct definition back to header to fix SplitSource-build. 2021-02-12 16:53:40 +03:00
levlam
9e37c85af3 Minor improvements. 2021-01-27 02:57:59 +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
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
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
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
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
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
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
0ee37c5e64 Ensure that ChannelFull.member_count >= administrator_count after speculative update. 2021-01-05 15:18:15 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +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
5268f83538 Increase chat/channel cache version to reload has_voice_chat flags. 2020-12-15 13:10:29 +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
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
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
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
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
levlam
30471b7099 Do not send chat actions to offline users like the main Android client.
GitOrigin-RevId: 6299f69ade490fa10bad74779b30a0d73a145ff2
2020-10-09 15:42:57 +03:00
levlam
6d9953aea5 Add add_anonymous_bot_user.
GitOrigin-RevId: 9eadd5f3621f7c5a2dc065d51d105c07ffc25616
2020-10-04 23:33:21 +03:00
levlam
b9e27e28b9 Make ContactsManager::get_service_notifications_user_id static.
GitOrigin-RevId: 28c9d570e1b9bfc7987dc299b87c0bb8ac33b38e
2020-09-24 23:04:32 +03:00
levlam
5c0d2eb050 Add ContactsManager::get_replies_bot_user_id.
GitOrigin-RevId: 17aa32508783894088c05e411434cad96e1178bd
2020-09-24 01:28:04 +03:00
levlam
cb3f390a92 Unify "log event" spelling.
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
e283ad8ac6 Use send_closure_later to load *Full to exclude possibility of loading them from the database synchronously and invoke some side effects such as message loading synchronously.
GitOrigin-RevId: 4c97db4ce3fd517274380eb9eea8e586c6f04399
2020-09-21 16:09:17 +03:00
levlam
446ba8d406 Replace getBlockedUsers with getBlockedChats.
GitOrigin-RevId: 431e0639095b9e01d1b897a52bca4430855560e4
2020-09-20 03:29:00 +03:00
levlam
54308a86fe Replace blockUser and unblockUser with toggleChatIsBlocked.
GitOrigin-RevId: 454542b32a7b8efc487afed54c59ae3864ea138e
2020-09-20 03:00:01 +03:00
levlam
9ecb61965d Move is_blcoked to Chat.
GitOrigin-RevId: 7d1fc672c9487feba0839b7af669323464243ffc
2020-09-20 01:54:40 +03:00
levlam
54ed8cfbc5 Save channelFull.is_blocked flag.
GitOrigin-RevId: 1c780c0a700070cfccc38c94b87778a7cd4415f7
2020-09-19 14:43:37 +03:00
levlam
b45ccc6d14 Update layer 119.
GitOrigin-RevId: fba8e1e0e8cf9b6fda11ab3762bd6efca5865eb8
2020-09-18 18:32:59 +03:00
levlam
cd3bf3618b Show comment button only if the linked channel is still the same.
GitOrigin-RevId: cc8f31a56e0de7ace7f8b1a756dd34e14e4a5457
2020-09-11 14:51:13 +03:00
levlam
ed782145bf Add reply_count and recent_replier_user_ids to MessageIntercationInfo.
GitOrigin-RevId: 48bae463c091d3d29e3096ebb4c2fbbbeda38dfd
2020-08-31 13:42:27 +03:00
levlam
53ca6e4f4a Add td_api::getMessageStatistics.
GitOrigin-RevId: f5d32ef829b91aa1fea59ea88b665fe39d32642c
2020-08-01 05:19:54 +03:00
levlam
8e77eacc72 Update message interaction info after receiving channel statistics.
GitOrigin-RevId: 6ec1b365c9f1299da1849fa6767f4ec79b627f90
2020-07-31 20:03:57 +03:00
levlam
b340b0deaa Update layer 116. Add UserFull.supports_video_calls flag.
GitOrigin-RevId: 67aa9a84ed676e3969beb1c5a01a012167744c6d
2020-08-05 21:34:04 +03:00
levlam
4bf3b013c7 Add updateChannelParticipant processing.
GitOrigin-RevId: 5701dcbb068583266aaf00b3b4ed5c6336566e76
2020-08-03 21:54:28 +03:00
levlam
2e0d642a98 Update layer 116. Support new apply_min_photo and can_view_stats flags.
GitOrigin-RevId: beb72d22576496ac082bf4a564c292f9a678b0c1
2020-07-28 02:57:23 +03:00
levlam
e34377cbcb Update photo cache after changing profile photo.
GitOrigin-RevId: cb48443fe0dd988e1d6eee40f72a8f12d6a5cefa
2020-07-20 21:10:40 +03:00
levlam
a01ad861bd Optionally send updates when deleting profile photo.
GitOrigin-RevId: bb916c244857b4f6838d7ae7108415ad4ec3a2a1
2020-07-20 17:23:32 +03:00
levlam
6b00f2fe6b Update cache after profile photo deletion instead of dropping it.
GitOrigin-RevId: 0bb120eeececb7706016aec01accd4f6194deef4
2020-07-20 17:05:49 +03:00
levlam
1984159963 Add old_photo_id to on_change_profile_photo.
GitOrigin-RevId: 28dd86b402d71af595b1ace467791c0896dbad2a
2020-07-20 01:53:40 +03:00
levlam
5b69e72b09 Update layer 116.
GitOrigin-RevId: 2daddadb7c75132729e8372a7edf40030696d038
2020-07-20 00:38:44 +03:00
levlam
09036ad929 Invalidate and reload UserFull after receiving first incoming message from the user to fix chatActionBar.
GitOrigin-RevId: 34c0492433475fc49f01159615462e7b7edf7d0b
2020-07-10 21:56:28 +03:00
levlam
5e14714182 Increase cache version to redownload photo.has_animation flag.
GitOrigin-RevId: f5c103025ba8d21ac5499f37056c1e14a7c4c719
2020-07-09 00:59:01 +03:00
levlam
6476e05d1e Change input photo type to InputChatPhoto in setChatPhoto.
GitOrigin-RevId: fae612a07ffdf71f393ffea7951a76808b90f7b3
2020-07-08 19:40:23 +03:00
levlam
c1b88e2cc1 Allow to specify main_frame_timestamp when setting up animated profile photo.
GitOrigin-RevId: 8e5229642cdf5a454f932c0b201497f019344eab
2020-07-07 20:56:54 +03:00
levlam
cf93b3c69c Support initial folder for secret chats.
GitOrigin-RevId: 57894f3ff767a0b24bac08c8251f51f3e4722b6a
2020-06-30 12:11:22 +03:00
levlam
de07f2151e Add supergroup statistics.
GitOrigin-RevId: 3ef2bfa925baef0fe7cdd7a8ea8dabab21f313ef
2020-06-29 23:51:57 +03:00
levlam
0ed26e5321 Improve setProfilePhoto.
GitOrigin-RevId: 9a5ee470c0a38c7989cef642b2f69faa2228baaa
2020-06-28 17:44:56 +03:00
levlam
8799a30b6e Add updates about unknown users, etc. in getCurrentState.
GitOrigin-RevId: 137250f7e4e194f4048ee399e0a80bc29c6e0429
2020-07-07 18:48:17 +03:00
levlam
de242740a1 Postpone channel username change side effects before channel is loaded from database.
GitOrigin-RevId: 50e6cd47c813e346c2b0deed459bf75b65c963b0
2020-07-07 16:53:21 +03:00
levlam
abf833e4f3 Postpone channel status change side effects before channel is loaded from database.
GitOrigin-RevId: 591b017d47920027d97e0a271158e413fac9ab81
2020-07-07 16:34:47 +03:00
levlam
bf287039ce Add checks that updateUser/BasicGroup/Supergroup is sent before update*Full.
GitOrigin-RevId: 8f499cf7cc8e52c93d3abcb79d5b7f22466f0656
2020-07-07 15:36:03 +03:00
levlam
a7bd0c3932 Add photo to *FullInfo.
GitOrigin-RevId: 21346a0880239abe428799fa58b9132abded6f13
2020-07-06 15:26:29 +03:00
levlam
c5cba87bf6 Improve user photo registration.
GitOrigin-RevId: 323513d5a30710bb8aabde9476b09be2eb8bd059
2020-06-27 21:59:10 +03:00