Commit Graph

4659 Commits

Author SHA1 Message Date
levlam
12ead50446 Add number of revoked invite link to chatInviteLinkCount. 2021-02-16 15:31:58 +03:00
levlam
79d2929584 support ttl_period for service messages. 2021-02-16 15:26:52 +03:00
levlam
f92339de85 Support telegram_api::messageActionSetMessagesTTL. 2021-02-16 15:15:45 +03:00
levlam
65d4229352 Allow to specify report text for all report chat reasons. 2021-02-12 20:14:59 +03:00
levlam
c1a14d887b Don't send updateDeleteMessage twice for the same message. 2021-02-10 14:36:33 +03:00
levlam
d6da217b9a Allow changing message TTL in non-secret chats. 2021-02-09 18:51:08 +03:00
levlam
5ac0a9bd8a Add chatEventMessageTtlSettingChanged. 2021-02-09 18:10:20 +03:00
levlam
4423ccbde2 Add invite_link_changes filter for chat event log. 2021-02-09 17:59:57 +03:00
levlam
54b7b0f6e3 Return message ttl for ordinary self-destructing messages. 2021-02-09 17:51:20 +03:00
levlam
cc50f3b143 Support receiving message TTL setting for all chat types. 2021-02-09 17:35:48 +03:00
levlam
2913b7288b Add MessageTtlSetting class. 2021-02-09 16:05:00 +03:00
levlam
876932843a Support automatic deletion of messages by ttl_period. 2021-02-08 23:41:17 +03:00
levlam
bf42d62f1e Unify ResultHandler subclass names and logged name. 2021-02-08 15:56:08 +03:00
levlam
c226a204fa Diallow invite link deletion for bots. 2021-02-08 15:34:05 +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
313a58b952 Replace td_api::sendChatSetTtlMessage with td_api::setChatMessageTtl. 2021-02-05 14:21:16 +03:00
levlam
9d9e093640 Remove inviteLink.is_expired field. 2021-02-05 03:04:16 +03:00
levlam
fef8bd151c Support some new chat events. 2021-02-05 02:54:34 +03:00
levlam
342b4e45ca Support deletion of all revoked invite links created by other administrator. 2021-02-05 02:17:12 +03:00
levlam
4d8fad1e81 Use httpUrl as return type of getProxyLink. 2021-02-05 01:46:55 +03:00
levlam
45dfb58cc5 Save autologin domains between restarts. 2021-02-05 01:40:53 +03:00
levlam
2193928cf6 Add getExternalLink method. 2021-02-04 14:36:11 +03:00
levlam
1403815148 Support t.me/+ links. 2021-02-03 22:35:43 +03:00
levlam
f2f68aa3b3 Add td_api::getChatInviteLinkCounts. 2021-02-02 19:23:45 +03:00
levlam
0cdb0388ee Improve TTL spelling. 2021-02-02 02:33:48 +03:00
levlam
642a9a9efb Update layer to 124. 2021-02-02 02:00:28 +03:00
levlam
4b2db994d0 Postpone group call actions till join if possible. 2021-02-16 13:08:58 +03:00
levlam
d84aa0927f Don't add self-participant before join group call if don't have self-user info. 2021-02-15 23:16:39 +03:00
levlam
70ee36a493 Improve join_group_call. 2021-02-15 23:00:30 +03:00
levlam
f9ef4c0c36 Don't rejoin voice chats in left basic groups. 2021-02-15 19:27:45 +03:00
levlam
aa2f645d74 Simplify get_group_call_participant usage. 2021-02-15 18:18:34 +03:00
levlam
5f54e72444 Process toggleGroupCallMuteNewParticipants immediately and sync in background. 2021-02-15 18:12:50 +03:00
levlam
70b81f81d4 Drop pending groupCallParticipant fields in case of an error. 2021-02-15 16:06:07 +03:00
levlam
4f41d58c50 Don't treat GROUPCALL_NOT_MODIFIED as an error. 2021-02-15 15:37:36 +03:00
levlam
d519040cd9 Make flag in td_api::groupCall more useful. 2021-02-15 15:28:58 +03:00
levlam
c8157edf57 Don't save message file source IDs for bots. 2021-02-14 01:35:40 +03:00
levlam
578b8a4dec Minor performance improvements. 2021-02-14 01:25:17 +03:00
levlam
65b381f7fd Add fast path in fix_formatted_text. 2021-02-13 22:45:11 +03:00
levlam
025cb9b6a4 Don't create request promise early. 2021-02-13 21:49:24 +03:00
levlam
3a657d9072 Fix need_rejoin. 2021-02-12 17:49:20 +03:00
levlam
155d83c58f Support top-level comments in SplitSource.php. 2021-02-12 17:27:07 +03:00
levlam
22289fe68b Move struct definition back to header to fix SplitSource-build. 2021-02-12 16:53:40 +03:00
levlam
f21e315456 Remove need_rejoin for inaccessible voice chats. 2021-02-12 16:48:14 +03:00
levlam
ba91f7f6ce Don't send speaking typings more often than once in 4 seconds. 2021-02-12 16:48:14 +03:00
levlam
18bbb47ecd Fix groupCall version updating and dropping. 2021-02-12 16:48:13 +03:00
levlam
ca64ad144a Immediately send updateGroupCallParticipant when is_muted changes. 2021-02-12 16:48:13 +03:00
levlam
1412e83363 Immrove groupCallParticipant mute-related flags. 2021-02-12 16:48:13 +03:00
levlam
631dde0939 Simpify handling of groupCallParticipant.is_muted flags. 2021-02-12 16:48:13 +03:00
levlam
1c52ee815e Improve groupCall.can_unmute_self synchronization. 2021-02-12 16:48:13 +03:00
levlam
e7a686cc96 Immediately change is_joined state to false after leaveGroupCall. 2021-02-12 16:48:13 +03:00
levlam
a80f99f5b8 Allow to leave being joined calls. 2021-02-12 16:48:13 +03:00
levlam
9554a42cd3 Add cancel_join_group_call_request function. 2021-02-12 16:48:13 +03:00
levlam
7ef5772861 Add self to group call participant list before actual join. 2021-02-12 16:48:13 +03:00
Arseny Smirnov
0c90ca3784 some cryptography draft 2021-02-10 23:25:28 +03:00
levlam
4a60fb10e8 Always update recent_speakers, because is_speaking could be changed. 2021-02-10 15:48:06 +03:00
levlam
b767414fc1 Resave dialog if last message can't be added. 2021-02-10 15:25:18 +03:00
levlam
bfeb516bf0 Add secret chat layer 123. 2021-02-06 23:29:01 +03:00
levlam
f1f739648c Fix banChatMember description. 2021-02-06 22:54:36 +03:00
levlam
f5b04a5701 Improve condition for updating self in a group call 2021-02-04 22:45:02 +03:00
levlam
23b8c9073b Always update self group call participant if audio_source changes. 2021-02-04 17:28:19 +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
e031a2c6c1 Improve Slice::truncate usage. 2021-02-04 15:54:12 +03:00
levlam
b07a9efb2e Disable SFTP link highlighting. 2021-02-03 21:08:01 +03:00
levlam
8146ecf950 Don't expect local volume_level for admins. 2021-02-03 20:12:17 +03:00
levlam
be6793ec07 Always add self to group call participant list if absent. 2021-02-03 19:55:33 +03:00
levlam
9f2b41b9d1 Allow to call leaveGroupCall for calls with need_rejoin. 2021-02-03 19:05:46 +03:00
levlam
630f0fe6df Always show self in list of group call participants. 2021-02-03 18:58:06 +03:00
levlam
4371ed52af Don't drop group call participants while need to rejoin. 2021-02-03 17:55:08 +03:00
levlam
778a45029e Ignore min-updates about unknown group call participants. 2021-02-02 01:29:02 +03:00
levlam
c05ece2cb5 Add GroupCallParticipant::update_from method. 2021-02-02 01:06:49 +03:00
levlam
658db2defd Update volume_level locally immediately. 2021-02-02 00:40:40 +03:00
levlam
1f1d1b442b Fix updating of is_muted_only_for_self by min-updates. 2021-02-01 22:40:42 +03:00
levlam
dfdc08162e Fix updating of volume_level by min-updates. 2021-02-01 22:29:45 +03:00
levlam
e3cb608293 Remove was_auth flag. 2021-02-01 15:07:10 +03:00
levlam
90b34e7d0c Remove authorization loss logic from DcAuthManager, because we can be logged before entering password and before authorization. 2021-02-01 14:51:38 +03:00
levlam
ad0c5e6783 Minor improvements. 2021-02-01 13:41:20 +03:00
levlam
c6466caee2 Add logging on long pts gap filling. 2021-02-01 13:06:38 +03:00
levlam
a29f4b43d4 Load even known group call participant after receiving typing from them. 2021-02-01 03:03:17 +03:00
levlam
41f6003b09 Fix supergroupMembersFilterMention with non-zero thread. 2021-01-31 20:46:51 +03:00
levlam
a6a6237a3f Split need_group_call_participants into two functions. 2021-01-30 23:52:16 +03:00
levlam
be815519f1 Improve documentation. 2021-01-29 22:16:28 +03:00
levlam
312e3b740a Update version to 1.7.1. 2021-01-28 22:18:33 +03:00
levlam
f0355b42c4 Disable notifications for importe messages. 2021-01-28 22:12:55 +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
d648ce0b69 Remove chatActionImportingMessages. 2021-01-26 03:13:09 +03:00
levlam
ef59e47807 Fix uploadImportedMedia. 2021-01-26 02:55:48 +03:00
levlam
15fe7f7a04 Rename suggested_name to suggested_path. 2021-01-26 02:39:48 +03:00
levlam
0b868c0aad Add chatActionBarInviteMembers. 2021-01-26 02:22:35 +03:00
levlam
f77adeb28c Update layer 123. 2021-01-26 02:00:12 +03:00
levlam
60b76e89aa Allow import messages with can_change_info administrator right. 2021-01-22 23:45:39 +03:00
levlam
6ddce1dd7a Add name to messageFileTypePrivate. 2021-01-22 22:42:32 +03:00
levlam
e584eccc65 Add createNewSupergroupChat.for_import. 2021-01-22 19:23:44 +03:00
levlam
1159323ecc Add getMessageFileType method. 2021-01-22 19:14:35 +03:00
levlam
bff723436a Upload inported messages as small files. 2021-01-22 18:13:38 +03:00
levlam
f307200ddc Support attachment upload in importMessages. 2021-01-22 17:09:08 +03:00
levlam
6f38576467 Add FileManager::guess_file_type. 2021-01-22 15:17:56 +03:00
levlam
b8d8f18b91 Add chatReportReasonFake. 2021-01-22 00:55:42 +03:00
levlam
516f9cb9ce Add importMessages method. 2021-01-21 22:00:08 +03:00
levlam
01f613f7bf Add user/supergroup.is_fake. 2021-01-21 13:40:22 +03:00
levlam
ebb453c952 Add messageForwardOriginMessageImport. 2021-01-21 12:49:05 +03:00
levlam
b54554c79e Add chatActionImportingMessages. 2021-01-21 01:50:21 +03:00
levlam
1d5de77b1f Remove superflous documentation. 2021-01-20 21:21:39 +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
613caeb444 Add source to send_get_dialog_query. 2021-01-20 15:02:45 +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
4fa29ab1b8 Add deleteAllCallMessages method. 2021-01-19 13:21:50 +03:00
levlam
3ff68546ab Add separate td_api::replacePermanentChatInviteLink method. 2021-01-18 23:04:56 +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
091d08b6a9 Improve encryptedChatDiscarded handling. 2021-01-18 19:02:24 +03:00
levlam
cc8c0cbe64 Support delete_history flag in messages.discardEncryption. 2021-01-18 15:04:31 +03:00
levlam
a2c1a695d2 Add edit date to information about chat invite links. 2021-01-17 23:24:48 +03:00
levlam
65bf9ad604 Improve field names and documentation. 2021-01-17 23:07:17 +03:00
levlam
ea70b5abaf Update layer 123. 2021-01-17 04:05:30 +03:00
levlam
3ae02a64c1 Make ContactsManager struct declarations private. 2021-01-16 19:23:57 +03:00
levlam
dda1b62655 Add suggestedActionSeeTicksHint. 2021-01-15 01:30:05 +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
70b4838a21 Rename source to audio_source. 2021-01-11 15:02:02 +03:00
levlam
567707099e Use messageEmpty.peer_id. 2021-01-02 23:32:02 +03:00
levlam
6bba5a568a Add setGroupCallParticipantVolumeLevel. 2021-01-02 22:59:48 +03:00
levlam
6b66cd8716 Add groupCallParticipant.volume_level. 2020-12-31 03:10:41 +03:00
levlam
607d198d36 Add groupCallParticipant.muted_only_for_self_count. 2020-12-31 02:54:17 +03:00
levlam
7bf916f4f5 Support muting group call participants for self. 2020-12-31 02:48:45 +03:00
levlam
91e5b9e677 Update layer to 123. Rename Android Pay to Google Pay. 2020-12-29 16:43:58 +03:00
levlam
4e710553ef Don't try to merge GIF animation with generated MP4 animation. 2021-01-28 15:11:14 +03:00
levlam
797aaecf2a Prefer video dimensions over image size attribute. 2021-01-28 15:03:52 +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
60673fea78 Add get_chat_members_object method. 2021-01-25 02:07:38 +03:00
levlam
ef160aa2c0 Add struct DialogParticipants. 2021-01-25 02:00:57 +03:00
levlam
feba24f1f4 Improve updating first/last database message IDs in on_get_history. 2021-01-25 01:19:41 +03:00
levlam
c169067bb5 Improve logging. 2021-01-24 23:45:03 +03:00
levlam
e63776dbd3 Improve updating first/last database message IDs in on_get_history. 2021-01-24 23:27:53 +03:00
levlam
08b3ce0aac Fix updating last database message ID after channelDifferenceTooLong. 2021-01-24 23:07:55 +03:00
levlam
d36ee86027 Stricter conditions for setting have_full_history. 2021-01-24 22:45:25 +03:00
levlam
fc2941763b Fix LibreSSL 3+ support. 2021-01-24 21:59:03 +03:00
levlam
527c61caeb Skip send_update_chat_has_scheduled_messages call if there was no scheduled message changes. 2021-01-24 03:29:54 +03:00
levlam
77a404d313 Delete updateMessageId if target message is in inaccessible chat part. 2021-01-24 03:20:19 +03:00
levlam
3e90584859 Delete updateMessageId whenever target message is found to be deleted. 2021-01-24 02:49:01 +03:00
levlam
c3e4560811 Add MessagesManager::delete_update_message_id method. 2021-01-24 02:14:51 +03:00
levlam
960aae0ae6 Improve handling of via_bot_name. 2021-01-23 23:19:37 +03:00
levlam
6e20aaa428 Add source to get_dimensions. 2021-01-23 22:04:35 +03:00
levlam
ae59f017e7 Fix expires_in == 0 in schedule_get_promo_data. 2021-01-23 21:39:41 +03:00
levlam
9c961b2eb8 Optimize database_message_id updating in on_get_history. 2021-01-21 23:37:00 +03:00
levlam
6729581d03 Clamp wrong dialog action progress instead of ignoring. 2021-01-21 23:19:40 +03:00
levlam
31265c93f1 Add ability to check whether a user is a mutual contact. 2021-01-21 16:49:41 +03:00
levlam
9a575cdb56 Forcely ignore updateChat received in getDifference. 2021-01-20 15:14:16 +03:00
levlam
e72c129f9c Ignore getDifference errors while closing. 2021-01-18 15:54:29 +03:00
levlam
027c78c691 Remove wrong error logging. 2021-01-18 13:32:44 +03:00
levlam
520f55d31f Remove expected error logging. 2021-01-18 12:58:16 +03:00
levlam
451c0afe60 Fix ChatFullInfo reloading due to uninited is_is_blocked_inited. 2021-01-16 12:33:45 +03:00
levlam
2348e175d9 Add source to get_chat_full_force. 2021-01-16 12:30:48 +03:00
levlam
52b7f8f118 Add DialogParticipantFilter logging. 2021-01-16 11:56:02 +03:00
levlam
db77165dad Optimize ContactsManager::search_among_users. 2021-01-16 03:14:15 +03:00
levlam
35c4562fc5 Make on_server_pong private. 2021-01-16 02:59:03 +03:00
levlam
7a94cac200 Make on_get_updates_state private. 2021-01-16 02:55:47 +03:00
levlam
7c0af14d09 Make on_get_difference private. 2021-01-16 02:44:58 +03:00
levlam
0e961b0be7 Move dummyUpdate/updateSentMessage to UpdatesManager. 2021-01-16 01:51:01 +03:00
levlam
004876dcf0 Make get_pts/get_qts/get_date private. 2021-01-16 01:42:06 +03:00
levlam
ef920f297d Move handling of pending pts updates to UpdatesManager. 2021-01-16 01:17:35 +03:00
levlam
3c1341731c Move check_pts_update to UpdatesManager. 2021-01-15 23:39:34 +03:00
levlam
67403c586b Remove force_apply parameter from on_update. 2021-01-15 19:32:16 +03:00
levlam
24664db3cb Forcely process qts updates in process_updates. 2021-01-15 19:09:00 +03:00
levlam
76fac90693 Simplify telegram_api::updateMessageID processing. 2021-01-15 18:52:41 +03:00
levlam
2eacc1f974 Forcely process pts updates in process_updates. 2021-01-15 18:45:26 +03:00
levlam
dc45d89848 Make searchStickers response cache time-bound. 2021-01-15 14:54:07 +03:00
levlam
cb24fd8037 Add struct FoundStickers. 2021-01-15 14:01:59 +03:00
levlam
10ec257921 Hide message interaction info for yet unsent supergroup messages. 2021-01-15 14:01:48 +03:00
levlam
36b4c55927 Remove force_apply from add_pending_update. 2021-01-12 01:52:10 +03:00
levlam
840391b95c Add is_pts_update/is_qts_update. 2021-01-11 23:58:03 +03:00
levlam
efec8787d8 Add MessagesManager::check_pts_update. 2021-01-11 23:31:25 +03:00
levlam
cdbed1844a Add updateFolderPeers to pts updates. 2021-01-11 23:14:41 +03:00
levlam
0acc29b1d2 Treat bots as always online. 2021-01-11 22:22:18 +03:00
levlam
27d3fdd09d Update group call join missing error message text. 2021-01-08 18:15:16 +03:00
levlam
c5549b7346 Improve log messages. 2021-01-08 16:05:16 +03:00
levlam
c271524019 Treat updates with too big pts as outdated. 2021-01-08 14:43:00 +03:00
levlam
eab5532688 Fix applying of postponed pts updates. 2021-01-08 14:37:50 +03:00