Commit Graph

8537 Commits

Author SHA1 Message Date
levlam
a049076797 Add td_api::getUserExpiringStories. 2023-05-21 12:39:53 +03:00
levlam
e763cb2803 Add td_api::getUserPinnedStories. 2023-05-20 23:24:36 +03:00
levlam
a247dd60ba Support file reference repair for stories. 2023-05-20 01:23:33 +03:00
levlam
963091c0cf Add StoryManager::reload_story. 2023-05-19 23:34:08 +03:00
levlam
0b8c71419f Add StoryManager::on_get_stories. 2023-05-19 23:25:52 +03:00
levlam
8c9bf81359 Add StoryManager::delete_story_files. 2023-05-19 17:00:33 +03:00
levlam
88620d1347 Add G()->story_manager(). 2023-05-19 16:20:19 +03:00
levlam
f5208dd8bd Add video.preload_prefix_size. 2023-05-19 14:57:57 +03:00
levlam
0ec13a13e2 Add td_api::story. 2023-05-19 13:41:15 +03:00
levlam
c202439a04 Add class StoryFullId. 2023-05-18 19:57:50 +03:00
levlam
50a0ae50af Add class StoryInteractionInfo. 2023-05-18 18:41:07 +03:00
levlam
17fc0c3a88 Add separate class for StoryContent. 2023-05-18 17:20:22 +03:00
levlam
0fb5916ea2 Support simultaneous setUserPrivacySettingRules queries. 2023-05-08 20:54:35 +03:00
levlam
59a1ab6cc1 Improve PrivacyInfo field names. 2023-05-08 20:35:47 +03:00
levlam
021aa7fac7 Add class Story. 2023-05-08 20:09:01 +03:00
levlam
76321fd9b4 Add storer for UserPrivacySettingRules. 2023-05-08 18:30:44 +03:00
levlam
a05940b705 Make PrivacyManager an ordinary manager. 2023-05-08 15:23:57 +03:00
levlam
65e01ad063 Ignore errors when processing telegram_api::PrivacyRule. 2023-05-08 14:54:57 +03:00
levlam
95f2961c9b Move UserPrivacySetting to a separate header. 2023-05-08 14:41:08 +03:00
levlam
c4504af340 Explicitly pass Td to UserPrivacySettingRule. 2023-05-08 14:15:32 +03:00
levlam
586586d50c Move UserPrivacySettingRule to a separate header. 2023-05-08 13:50:51 +03:00
levlam
0030ae30f8 Locally update close friends after changing them. 2023-05-04 18:42:18 +03:00
levlam
161cc91acf Add td_api::setCloseFriends. 2023-05-04 18:27:03 +03:00
levlam
86946c6b1e Reload once contacts to repair close friends. 2023-05-03 20:55:28 +03:00
levlam
fb57555f3d Add td_api::getCloseFriends. 2023-05-03 20:42:47 +03:00
levlam
a65af73b90 Add User.is_close_friend. 2023-05-03 20:22:16 +03:00
levlam
d7f72e03b0 Add td_api::userPrivacySettingRuleAllowCloseFriends. 2023-05-03 19:42:36 +03:00
levlam
83dfdcd9ee Add class StoryId. 2023-05-01 22:33:52 +03:00
levlam
b0ab122d91 Add StoryManager. 2023-05-01 22:19:16 +03:00
levlam
030e440757 Update layer to 160. 2023-05-01 21:07:01 +03:00
levlam
76e2ff1140 Add messageSponsorTypeWebsite. 2023-06-02 15:13:20 +03:00
levlam
2969f570b8 Add class td_api::messageSponsor. 2023-06-02 14:42:28 +03:00
levlam
6e011cb212 Add and use full_message_id variable. 2023-06-01 15:46:57 +03:00
levlam
24d012bc73 Add td_api::searchRecentlyFoundChat. 2023-05-16 21:41:19 +03:00
levlam
96da28d4fb Remove supergroupFullInfo.can_set_username; chat username can be changed by its owner and only by the owner. 2023-05-10 17:17:26 +03:00
levlam
cdb3df8966 Log PTS and QTS gap statistics for each million events. 2023-05-09 12:53:48 +03:00
levlam
e8e1236e31 Allow clicking sponsored message after it was viewed. 2023-05-04 17:33:35 +03:00
levlam
1a5f81163d Add td_api::clickSponsoredMessage. 2023-05-04 17:21:50 +03:00
levlam
10338c0490 Add privacy setting for bio. 2023-05-04 17:03:37 +03:00
levlam
f733cb56ce Fix my_recent_chooser when removing reaction. 2023-05-01 18:28:06 +03:00
levlam
e4a15cc0ef Fix MessageReaction::set_my_recent_chooser_dialog_id. 2023-05-01 18:09:27 +03:00
levlam
ac81a35283 Add td_api::getChatFolderChatCount. 2023-05-01 14:57:16 +03:00
levlam
29c0004bfd Automatically send screenshot notification messages. 2023-04-30 16:00:20 +03:00
levlam
44d2b0af1e Fix method name. 2023-04-29 22:27:31 +03:00
levlam
1b891ddc7b Add chatFolderInfo.is_shareable. 2023-04-29 22:04:25 +03:00
levlam
1f8129e94f Invalidate authentication codes from copied messages. 2023-04-28 16:36:07 +03:00
levlam
340312e3da Add messageSourceScreenshot and notify about screenshotted codes. 2023-04-28 14:44:35 +03:00
levlam
da813f3ee9 Support updates.difference in on_get_pts_update. 2023-04-27 22:47:45 +03:00
levlam
797156bf11 Fast PTS gap repair. 2023-04-27 22:01:10 +03:00
levlam
b34955e7a9 Use separate request to confirm PTS and QTS. 2023-04-27 20:21:30 +03:00
levlam
601a216078 Add reactions on behalf of channels. 2023-04-27 19:31:31 +03:00
levlam
036a7cd539 Ensure that my_dialog_id is the same for all reactions. 2023-04-27 18:46:51 +03:00
levlam
b1c627a3be Fix chosen reaction order in MessageReactions::update_from. 2023-04-27 17:26:26 +03:00
levlam
e528c85550 Remove now unneeded parameters from MessageReactions::remove_reaction. 2023-04-27 16:42:38 +03:00
levlam
89cd51b461 Add MessageReaction::update_from. 2023-04-27 16:37:15 +03:00
levlam
2d0fa11624 Support my_recent_chooser_dialog_id. 2023-04-27 16:20:54 +03:00
levlam
61e8e863d9 Update comment about recent voters. 2023-04-27 14:34:52 +03:00
levlam
aa42602701 Add td_api::suggestedActionRestorePremium. 2023-04-25 16:48:16 +03:00
levlam
38efb6d673 Support MessageSenders as poll voters. 2023-04-25 16:41:04 +03:00
levlam
48d72677d3 Update layer to 159. 2023-04-25 14:27:58 +03:00
levlam
66234ae253 Fix IPv6 usage on WatchOS. 2023-06-11 13:25:06 +03:00
levlam
e3256e7b4c Use td::append if possible. 2023-06-10 23:14:03 +03:00
levlam
8096cf0439 Register replies to messages in different chats. 2023-06-09 13:44:15 +03:00
levlam
1886bcf850 Make update_message_max_reply_media_timestamp const. 2023-06-08 20:14:38 +03:00
levlam
bc618b855e Replace all message reply-related fields simultaneously. 2023-06-08 20:09:42 +03:00
levlam
6f082a40d2 Improve MessagesManager::create_message_to_send. 2023-06-08 13:39:36 +03:00
levlam
e8ee1c5149 Don't force getChatHistory response for only_local requests. 2023-06-07 15:23:09 +03:00
levlam
7d83f2e15a Remove redundant check, existing also in get_history_impl. 2023-06-07 15:14:45 +03:00
levlam
677219a251 Simplify OrderedMessages::auto_attach_message. 2023-06-07 13:23:13 +03:00
levlam
dec814ce34 Fix auto_attach_message. 2023-06-07 13:14:24 +03:00
levlam
ea217b10c1 Add MessagesManager::set_message_reply. 2023-06-07 00:57:27 +03:00
levlam
302a8c137b Add comment about missing is_changed update. 2023-06-06 14:36:49 +03:00
levlam
2aaf0f5290 Fix attach_menu_enabled updating. 2023-06-06 14:34:07 +03:00
levlam
771771a2c7 Check reply_in_dialog_id in relevant places. 2023-06-06 14:32:56 +03:00
levlam
31eee9d084 Explicitly pass encoding to htmlspecialchars. 2023-06-05 00:05:21 +03:00
levlam
ad8d1f8964 Explicitly pass flags to htmlspecialchars to have consistent behavior. 2023-06-04 23:10:06 +03:00
levlam
9b8bb82897 tg_cli: improve as_message_sender. 2023-06-03 22:12:45 +03:00
levlam
4580cfc23b Skip unsupported sponsored messages. 2023-06-02 13:01:32 +03:00
levlam
75e00df016 Ensure ordering between messages.getMessagesReactions and channels.readMessageContents. 2023-06-01 15:53:13 +03:00
levlam
6b342e9b0d Ignore reaction changes while there is a pending request to read unread reactions. 2023-06-01 15:31:05 +03:00
levlam
04525f6f6b Completely ignore global drafts in forum chats. 2023-05-31 17:54:31 +03:00
levlam
e599d16fc2 Make DraftMessage fields private and improve their names. 2023-05-31 17:46:06 +03:00
levlam
0b56f92190 Add methods to DraftMessage class. 2023-05-31 17:35:56 +03:00
levlam
978eb97c72 Improve get_draft_message. 2023-05-31 17:19:31 +03:00
levlam
ad5655d359 Add and use add_draft_message_dependencies. 2023-05-31 16:34:12 +03:00
levlam
33cbb2f438 Move ClearAllDraftsQuery to DraftMessage.cpp. 2023-05-31 16:23:23 +03:00
levlam
394ce38278 Move GetAllDraftsQuery to DraftMessage.cpp. 2023-05-31 16:17:20 +03:00
levlam
1aeaaaa733 Move SaveDraftMessageQuery to DraftMessage.cpp. 2023-05-31 15:57:30 +03:00
levlam
ec4d9836ee Add and use need_update_draft_message. 2023-05-31 15:29:37 +03:00
levlam
0ebc404ec5 Move file_loader logging to DEBUG by default. 2023-05-31 14:44:17 +03:00
levlam
1ff0e66eb0 Drop ready_size when delete partial remote location. 2023-05-30 12:29:12 +03:00
levlam
716481ca73 Don't allow message date change for server messages after sending. 2023-05-28 23:07:39 +03:00
levlam
8cc992e15e Add MessagesManager::on_get_messages_from_database. 2023-05-28 22:44:27 +03:00
levlam
0907c4fda5 Improve action order in on_get_history_from_database. 2023-05-28 11:15:15 +03:00
levlam
b64f8260f9 Remove manual load_messages call if receive no new messages from database. 2023-05-28 01:17:32 +03:00
levlam
1cf48ab89b Improve log messages. 2023-05-27 23:02:47 +03:00
levlam
b0ff4376e3 tg_cli: remove legacy api_id/api_hash options. 2023-05-27 21:39:04 +03:00
levlam
e1ecdf8399 Check wait_size and quick_ack first. 2023-05-26 13:24:55 +03:00
levlam
5ed34993be Save top_thread_message_id in RequestWebViewQuery. 2023-05-25 17:31:34 +03:00
levlam
a8be92146d Add class DocumentsManager::Subtype. 2023-05-25 13:57:12 +03:00