levlam
|
8abe652785
|
Don't allow forward of stories to secret chats.
|
2023-10-14 02:47:49 +03:00 |
|
levlam
|
4ed0b23c9c
|
Update version to 1.8.20.
|
2023-10-13 00:45:38 +03:00 |
|
levlam
|
12ffa253b3
|
Remove empty stored proxy from binlog.
|
2023-10-12 23:48:40 +03:00 |
|
levlam
|
eed6e0bba6
|
Don't try to init proxies if they have never been added.
|
2023-10-12 23:41:46 +03:00 |
|
levlam
|
93ddc9c3db
|
Remove support for dropping old PMC-based chat database.
|
2023-10-12 23:14:17 +03:00 |
|
levlam
|
97a401cd04
|
Don't use slow BinlogKeyValue::erase_by_prefix for bots on each start.
|
2023-10-12 22:53:12 +03:00 |
|
levlam
|
861f0edab4
|
Replace TopDialogManager.is_active_ with !is_bot().
|
2023-10-12 22:30:28 +03:00 |
|
levlam
|
6b576bb2e3
|
Don't postpone updates for bots before first getDifference.
|
2023-10-12 19:26:18 +03:00 |
|
levlam
|
8d2d01abcc
|
Always postpone updateChatLastMessage in getCurrentState.
|
2023-10-11 00:28:56 +03:00 |
|
levlam
|
844e6f2bfb
|
Pass source as pointer to on_update_message_id.
|
2023-10-10 23:47:28 +03:00 |
|
levlam
|
367b2af164
|
Make MessageOrigin fields private.
|
2023-10-09 21:29:23 +03:00 |
|
levlam
|
94f72a026c
|
Inline last usage of MessagesManager::is_forward_info_sender_hidden.
|
2023-10-09 21:27:14 +03:00 |
|
levlam
|
21068870f0
|
Add MessageOrigin::hide_sender_if_needed.
|
2023-10-09 21:24:22 +03:00 |
|
levlam
|
b10220a495
|
Add MessageOrigin::has_sender_signature().
|
2023-10-09 21:16:06 +03:00 |
|
levlam
|
ae6e8b5a91
|
Add MessageOrigin::get_sender_name().
|
2023-10-09 21:10:09 +03:00 |
|
levlam
|
9e82513802
|
Add and use MessageOrigin::get_message_full_id.
|
2023-10-09 20:44:44 +03:00 |
|
levlam
|
7b1408d44e
|
Add and use MessageOrigin::get_sender.
|
2023-10-09 20:06:23 +03:00 |
|
levlam
|
8da2eba168
|
Add MessageOrigin::add_user_ids/add_channel_ids.
|
2023-10-09 19:20:53 +03:00 |
|
levlam
|
c05b5ba3e5
|
Add MessageOrigin::add_dependencies.
|
2023-10-09 18:56:21 +03:00 |
|
levlam
|
c86d4d1036
|
Add class MessageOrigin.
|
2023-10-09 18:48:01 +03:00 |
|
levlam
|
d9d3697987
|
Remove imported check from is_forward_info_sender_hidden.
|
2023-10-09 14:23:22 +03:00 |
|
levlam
|
13d02a8644
|
Add separate class messageImportInfo.
|
2023-10-09 12:20:32 +03:00 |
|
levlam
|
b5bf594662
|
Improve messageBotWriteAccessAllowed class.
|
2023-09-28 15:15:00 +03:00 |
|
levlam
|
e3d89cf90f
|
Add messageReaction.used_sender_id.
|
2023-09-28 14:32:08 +03:00 |
|
levlam
|
0fd3c55547
|
Add addedReaction.is_outgoing.
|
2023-09-28 13:25:33 +03:00 |
|
levlam
|
7d2d0b9f2e
|
Improve names of MessageReaction functions.
|
2023-09-27 17:25:03 +03:00 |
|
levlam
|
4a02f50969
|
Add chatBoostStatus.boost_url.
|
2023-09-25 18:40:55 +03:00 |
|
levlam
|
9a40ea0f10
|
Update layer to 165.
|
2023-09-25 18:16:26 +03:00 |
|
levlam
|
de32750836
|
Use Dependencies to load data for binlog events if appropriate.
|
2023-10-08 23:16:59 +03:00 |
|
|
986f1ab469
|
Fix typo in docs
|
2023-10-07 11:49:40 +03:00 |
|
levlam
|
4eb9020d53
|
Use FlatHashSet for disallowed subdomains.
|
2023-10-07 11:46:47 +03:00 |
|
levlam
|
409dda8d77
|
Add more t.me subdomains to exceptions.
|
2023-10-07 11:42:20 +03:00 |
|
levlam
|
6c88f6dbfe
|
Update list of TLDs.
|
2023-10-06 00:22:43 +03:00 |
|
levlam
|
9289270cd9
|
Close databases and binlog on another thread.
|
2023-10-05 21:50:53 +03:00 |
|
levlam
|
b41a51f2ec
|
Use add_to_top if possible.
|
2023-10-04 16:18:20 +03:00 |
|
levlam
|
14b10c7682
|
Fix my recent chosen reaction chat id also for objects received from the server.
|
2023-10-04 16:02:53 +03:00 |
|
levlam
|
74679944af
|
Remove error-prone server_time_cached.
|
2023-10-04 12:24:58 +03:00 |
|
levlam
|
2a0d757ec6
|
Explicitly pass Unix time to can_get_story_viewers.
|
2023-10-04 11:28:56 +03:00 |
|
levlam
|
51e23dd458
|
Decrease MIN_DELETED_ASYNCHRONOUSLY_MESSAGES.
|
2023-10-02 20:38:59 +03:00 |
|
levlam
|
ceaa37fe0d
|
Simplify set_dialog_is_pinned implementation.
|
2023-10-01 21:49:15 +03:00 |
|
levlam
|
c474942666
|
Use add_to_top.
|
2023-10-01 21:17:30 +03:00 |
|
levlam
|
72b8a29d89
|
Fix documentation misprint.
|
2023-09-30 01:43:43 +03:00 |
|
levlam
|
97ec3eacf4
|
Fix get_percentage_value.
|
2023-09-28 19:54:36 +03:00 |
|
levlam
|
5c93447ade
|
Increase MessageUnsupported version to reget messages with boost links.
|
2023-09-28 19:04:50 +03:00 |
|
levlam
|
5d7f34f659
|
Add StoryManager::has_unexpired_viewers.
|
2023-09-28 16:31:17 +03:00 |
|
levlam
|
5b072215a7
|
Improve media_timestamp documentation.
|
2023-09-28 00:53:10 +03:00 |
|
levlam
|
469f87c2bc
|
Allow to remove media_album_id for yet unsent messages.
|
2023-09-28 00:50:09 +03:00 |
|
levlam
|
32df5ab459
|
Fix documentation misprints.
|
2023-09-28 00:44:35 +03:00 |
|
levlam
|
a65f14fff6
|
Improve log messages.
|
2023-09-27 16:22:16 +03:00 |
|
levlam
|
a6389d3520
|
Recheck active stories if failed to find some of them.
|
2023-09-27 16:15:18 +03:00 |
|
levlam
|
7b9abf3eca
|
Explicitly restart timeout.
|
2023-09-27 15:31:34 +03:00 |
|
levlam
|
93d17802e3
|
Fix saving of active stories.
|
2023-09-27 14:30:44 +03:00 |
|
levlam
|
bb8070ed44
|
Reload chats to send stories once a day.
|
2023-09-27 13:31:09 +03:00 |
|
levlam
|
a4016cef70
|
Add source to update_story_list_sent_total_count.
|
2023-09-27 00:40:36 +03:00 |
|
levlam
|
23683f40f0
|
Send updateChatActiveStories for stories loaded from database in decreasing order.
|
2023-09-27 00:35:47 +03:00 |
|
levlam
|
ab673a959b
|
Add some index checks.
|
2023-09-26 14:03:10 +03:00 |
|
levlam
|
ce5c3f32e7
|
Support alternative boost links.
|
2023-09-26 13:08:54 +03:00 |
|
levlam
|
84f2985154
|
Init boolean message fields closer to their first usage.
|
2023-09-25 22:52:42 +03:00 |
|
levlam
|
83df57a102
|
Remove MessageInfo.flags.
|
2023-09-25 22:48:35 +03:00 |
|
levlam
|
09ced5689b
|
Remove most MESSAGE_FLAG usages.
|
2023-09-25 22:09:31 +03:00 |
|
levlam
|
9a44005187
|
Add UpdatesManager::fix_short_message_flags.
|
2023-09-25 21:56:36 +03:00 |
|
levlam
|
155095dff7
|
Move get_message_public_forwards to StatisticsManager.
|
2023-09-25 21:39:02 +03:00 |
|
levlam
|
7dc1aed0d2
|
Use can_get_message_statistics in send_get_message_public_forwards_query.
|
2023-09-25 21:23:14 +03:00 |
|
levlam
|
235d884593
|
Improve can_manage_chat documentation.
|
2023-09-25 20:27:55 +03:00 |
|
levlam
|
9b4266c0c9
|
Remove now wrong CHECK.
|
2023-09-25 17:11:36 +03:00 |
|
levlam
|
1c758bbade
|
Always send updateAuthorizationState, even the state ID is the same.
|
2023-09-25 16:07:21 +03:00 |
|
levlam
|
0d16085d69
|
Just ignore views of sponsored messages from history preview or unidentified places.
|
2023-09-24 03:09:53 +03:00 |
|
levlam
|
2de39ffffe
|
Fix can_have_input_media for stories.
|
2023-09-23 16:33:34 +03:00 |
|
levlam
|
2589c3fd46
|
Update version to 1.8.19.
|
2023-09-22 16:22:03 +03:00 |
|
levlam
|
7eef4ec47a
|
Add InvalidateSignInCodesOnServerLogEvent.
|
2023-09-22 16:16:14 +03:00 |
|
levlam
|
df3d50b056
|
Add ResetWebAuthorizationsOnServerLogEvent.
|
2023-09-22 16:04:00 +03:00 |
|
levlam
|
86185f3b8e
|
Add ResetWebAuthorizationOnServerLogEvent.
|
2023-09-22 15:58:25 +03:00 |
|
levlam
|
e65059e540
|
Add SetAuthorizationTtlOnServerLogEvent.
|
2023-09-22 15:49:51 +03:00 |
|
levlam
|
fb859209c1
|
Add SetAccountTtlOnServerLogEvent.
|
2023-09-22 15:06:53 +03:00 |
|
levlam
|
6600f9279e
|
Add SetDefaultHistoryTtlOnServerLogEvent.
|
2023-09-22 15:03:02 +03:00 |
|
levlam
|
b222f48d05
|
Add ResetAuthorizationsOnServerLogEvent.
|
2023-09-22 14:50:44 +03:00 |
|
levlam
|
f2b2f01c33
|
Add ResetAuthorizationOnServerLogEvent.
|
2023-09-22 14:40:53 +03:00 |
|
levlam
|
e6fb913798
|
Add ChangeAuthorizationSettingsOnServerLogEvent.
|
2023-09-22 14:22:24 +03:00 |
|
levlam
|
df563e781e
|
Explicitly specify TLObjectStorer's template parameter.
|
2023-09-21 21:31:59 +03:00 |
|
levlam
|
4c8ab2bf29
|
Send at most 1000 queries in a container.
|
2023-09-21 21:22:33 +03:00 |
|
levlam
|
14af252795
|
Improve names of create_*_storer functions.
|
2023-09-21 21:19:18 +03:00 |
|
levlam
|
254a3bfef0
|
Remove useless check.
|
2023-09-21 20:41:11 +03:00 |
|
levlam
|
1e2c0ce814
|
Rename FullMessageId to MessageFullId.
|
2023-09-21 19:11:17 +03:00 |
|
levlam
|
0362411550
|
Minor improvements.
|
2023-09-21 19:01:17 +03:00 |
|
levlam
|
b4f6e716ac
|
Add source to get_(chat|channel|secret_chat)_force.
|
2023-09-21 18:56:13 +03:00 |
|
levlam
|
dc4b5aad51
|
Return nothing from RawConnection::send_no_crypto.
|
2023-09-21 17:56:21 +03:00 |
|
levlam
|
b44e2ea3fc
|
Add strictly-typed class mtproto::MessageId.
|
2023-09-21 17:52:33 +03:00 |
|
levlam
|
e47cea5904
|
Improve SessionConnection::ServiceQuery.
|
2023-09-21 16:52:21 +03:00 |
|
levlam
|
5334cc8e10
|
Improve types of vectors in SessionConnection.
|
2023-09-21 16:47:12 +03:00 |
|
levlam
|
7e65c3d4dd
|
Improve message_id-parameter names.
|
2023-09-21 16:09:19 +03:00 |
|
levlam
|
1cd71efb03
|
Improve "container_message_id" variable names.
|
2023-09-21 15:44:26 +03:00 |
|
levlam
|
ec44b3d16c
|
Improve "invoke_after_message_id" variable names.
|
2023-09-21 15:40:56 +03:00 |
|
levlam
|
c8e46cae53
|
Improve method names.
|
2023-09-21 14:53:33 +03:00 |
|
levlam
|
11c78406c3
|
Explicitly check returned errors.
|
2023-09-21 14:47:17 +03:00 |
|
levlam
|
d0d8d74c3e
|
Remove checks out of DownloadManager::remove_file_impl.
|
2023-09-21 14:37:09 +03:00 |
|
levlam
|
782fc0964f
|
Improve function name.
|
2023-09-21 14:18:12 +03:00 |
|
levlam
|
a2c8aa7165
|
Update channel participant count when receiving boost status.
|
2023-09-21 14:05:40 +03:00 |
|
levlam
|
e3bdd30d91
|
Improve documentation.
|
2023-09-20 21:31:02 +03:00 |
|
levlam
|
8fb3fca841
|
Improve error logging for banned accounts.
|
2023-09-20 21:28:23 +03:00 |
|
levlam
|
67cf6d7fe5
|
Don't log not found chats in load_dialogs.
|
2023-09-20 20:44:21 +03:00 |
|
levlam
|
606ee063d5
|
Don't try to load recent chats from database right after the database was deleted.
|
2023-09-20 20:40:34 +03:00 |
|
levlam
|
246f2ca42f
|
Recheck received from the server channels.
|
2023-09-20 20:34:21 +03:00 |
|
levlam
|
036f37fe43
|
Simplify ContactsManager::update_created_public_channels.
|
2023-09-20 19:53:42 +03:00 |
|
levlam
|
154b2cb315
|
Recheck loaded from database channels.
|
2023-09-20 19:51:17 +03:00 |
|
levlam
|
cc1b01620b
|
Drop cached channel lists when dialog database is recreated.
|
2023-09-20 19:09:51 +03:00 |
|
levlam
|
cd7d960ba4
|
Cache chats to send stories.
|
2023-09-20 19:07:51 +03:00 |
|
levlam
|
82c702c16d
|
Minor improvements.
|
2023-09-19 21:59:14 +03:00 |
|
levlam
|
597563b0d4
|
Make Statistics conversion functions private.
|
2023-09-19 21:45:22 +03:00 |
|
levlam
|
be63c46992
|
Move statistics related functions to StatisticsManager.
|
2023-09-19 21:40:29 +03:00 |
|
levlam
|
d1dae35b85
|
Add empty StatisticsManager.
|
2023-09-19 21:24:19 +03:00 |
|
levlam
|
0e56b7e527
|
Clamp percentage value.
|
2023-09-19 21:15:10 +03:00 |
|
levlam
|
518f11f40a
|
Log message identifiers as hex numbers.
|
2023-09-19 21:10:11 +03:00 |
|
levlam
|
6dbec3fda7
|
Use td_api::error in td_api::updateStorySendFailed.
|
2023-09-19 19:13:45 +03:00 |
|
levlam
|
6b17c0fdec
|
Use error object in td_api::messageSendingStateFailed/updateMessageSendFailed.
|
2023-09-19 19:04:56 +03:00 |
|
levlam
|
a19d49a107
|
Ignore interaction info/chosen reaction updates while having a pending story reaction.
|
2023-09-19 18:40:15 +03:00 |
|
levlam
|
84e1d5ff1f
|
Add StoryManager::on_story_chosen_reaction_changed.
|
2023-09-19 14:41:31 +03:00 |
|
levlam
|
48607e18b5
|
Locally update reaction counts when changing story reaction.
|
2023-09-19 13:42:13 +03:00 |
|
levlam
|
5a19de8faa
|
Add storyAreaTypeSuggestedReaction.total_count.
|
2023-09-19 13:09:59 +03:00 |
|
levlam
|
fde0c8a0b1
|
Add storyInteractionInfo.forward_count.
|
2023-09-18 22:00:38 +03:00 |
|
levlam
|
118358508a
|
Update default premium feature order.
|
2023-09-18 20:22:09 +03:00 |
|
levlam
|
6cb1f8fb96
|
Add td_api::premiumFeatureChatBoost.
|
2023-09-18 19:57:48 +03:00 |
|
levlam
|
0f7193172b
|
Add premiumLimitTypeStorySuggestedReactionAreaCount.
|
2023-09-18 19:47:34 +03:00 |
|
levlam
|
583168767d
|
Add td_api::getChatBoosts.
|
2023-09-16 12:22:11 +03:00 |
|
levlam
|
9a9cf8c48d
|
Improve internalLinkTypeChatBoost description.
|
2023-09-15 19:18:57 +03:00 |
|
levlam
|
469be958f2
|
Add td_api::getChatBoostLinkInfo.
|
2023-09-15 19:07:18 +03:00 |
|
levlam
|
069f8607df
|
Add td_api::getChatBoostLink.
|
2023-09-15 16:37:17 +03:00 |
|
levlam
|
714397da80
|
Add td_api::internalLinkTypeChatBoost.
|
2023-09-15 16:24:26 +03:00 |
|
levlam
|
8230efb97f
|
Add td_api::boostChat.
|
2023-09-15 15:11:37 +03:00 |
|
levlam
|
97db1de2c1
|
Add td_api::canBoostChat.
|
2023-09-15 15:00:02 +03:00 |
|
levlam
|
e2462e2487
|
Add td_api::canSendStoryResultBoostNeeded.
|
2023-09-14 20:04:59 +03:00 |
|
levlam
|
c120b5ef19
|
Add td_api::getChatsToSendStories.
|
2023-09-14 18:59:30 +03:00 |
|
levlam
|
7605812d2c
|
Add td_api::getChatBoostStatus.
|
2023-09-12 18:37:32 +03:00 |
|
levlam
|
0ab5ab00ea
|
tg_cli: add logf.
|
2023-09-12 17:34:12 +03:00 |
|
levlam
|
1558edd3dd
|
Support Terms of Service for non-recurring payments.
|
2023-09-12 17:30:17 +03:00 |
|
levlam
|
d1a2ca9261
|
Disallow replies to channel stories.
|
2023-09-05 19:31:14 +03:00 |
|
levlam
|
b42781a631
|
Update order of channel stories when they are joined or left.
|
2023-09-05 19:14:40 +03:00 |
|
levlam
|
08fc889997
|
Show stories from channels in story lists.
|
2023-09-05 18:48:47 +03:00 |
|
levlam
|
e59a832e10
|
Use channel.stories_hidden_min flag.
|
2023-09-05 18:45:28 +03:00 |
|
levlam
|
b4c25af1b6
|
Update stories from channelFull.
|
2023-09-05 18:36:30 +03:00 |
|
levlam
|
de204f7bf2
|
Add supergroupFullInfo.has_pinned_stories.
|
2023-09-05 18:34:06 +03:00 |
|
levlam
|
f2a821a07e
|
Support archiving channel stories.
|
2023-09-05 18:17:45 +03:00 |
|
levlam
|
35a319db20
|
Poll channel max active story identifiers.
|
2023-09-05 17:41:33 +03:00 |
|
levlam
|
8991ddf263
|
Add supergroup.has_active_stories/has_unread_active_stories.
|
2023-09-05 16:50:41 +03:00 |
|
levlam
|
86d286fc7c
|
Add story action flags.
|
2023-09-05 15:50:38 +03:00 |
|
levlam
|
6e3e4c190d
|
Add Story.is_outgoing_ field.
|
2023-09-05 13:50:16 +03:00 |
|
levlam
|
b16de41ef1
|
Support sending and editing stories in channels.
|
2023-09-04 23:49:17 +03:00 |
|
levlam
|
58097b847b
|
Remove StoryManager::is_story_owned.
|
2023-09-04 22:21:20 +03:00 |
|
levlam
|
66fd2f35f2
|
Add StoryManager::can_get_story_view_count.
|
2023-09-04 22:19:42 +03:00 |
|
levlam
|
0c9d8e9f6f
|
Add StoryManager::can_access_expired_story.
|
2023-09-04 21:52:05 +03:00 |
|
levlam
|
0115c9ac9d
|
Add functions to check story access rights.
|
2023-09-04 21:45:16 +03:00 |
|