Commit Graph

8712 Commits

Author SHA1 Message Date
levlam
f39b906b28 Support STORY_DELETED push notification. 2023-06-22 15:56:34 +03:00
levlam
579eef5f10 Rename ChatReportReason to ReportReason. 2023-06-22 13:47:52 +03:00
levlam
26c8c0f4fa Add td_api::reportStory. 2023-06-21 23:23:19 +03:00
levlam
0ac33fa9c0 Add comment about returning story viewers from cache. 2023-06-20 16:40:52 +03:00
levlam
11ae003562 Update recent story viewers from the full list. 2023-06-20 16:12:12 +03:00
levlam
4e2e6f6e61 Cache received story viewers. 2023-06-20 15:54:47 +03:00
levlam
c885e3f5fa Add MessageViewer.is_empty(). 2023-06-20 14:48:51 +03:00
levlam
f152098b92 Update Story.can_get_viewers by timeout. 2023-06-20 00:05:19 +03:00
levlam
a86b7538a7 Delete story from active stories or delete completely when it expires. 2023-06-19 20:45:58 +03:00
levlam
00494f8dc3 Add global identifiers to stories. 2023-06-19 20:13:44 +03:00
levlam
63495795c5 Return active stories from cache. 2023-06-19 19:55:30 +03:00
levlam
917b4dc1b6 Update active stories when a new active story s received. 2023-06-19 19:52:16 +03:00
levlam
ca8b80d198 Add Story.can_get_viewers. 2023-06-19 19:13:08 +03:00
levlam
2bf612c020 Add MessageViewers::get_sublist. 2023-06-19 18:45:56 +03:00
levlam
c9cd221d77 Delete outdated comments. 2023-06-19 17:48:12 +03:00
levlam
2ea17ff61a Add td_api::getStoryViewers. 2023-06-18 23:25:50 +03:00
levlam
8cb17eb1c3 Update max_read_story_id from log events. 2023-06-17 23:27:19 +03:00
levlam
25bfb761d4 Allow to change "archive_all_stories" option. 2023-06-16 17:55:54 +03:00
levlam
cebea14b03 Add logging for RawConnection life cycle. 2023-06-16 15:16:03 +03:00
levlam
4c1ee918b3 Add "archive_all_stories" option. 2023-06-16 14:58:06 +03:00
levlam
509dd95882 Allow IPv6 connections on watchOS. 2023-06-16 13:24:21 +03:00
levlam
ee8e2b1481 Avoid expected error logging on watchOS. 2023-06-16 13:08:50 +03:00
levlam
799531d506 Improve story active period checks. 2023-06-15 21:48:13 +03:00
levlam
7935fb183c Add userFullInfo.has_pinned_stories. 2023-06-15 20:53:58 +03:00
levlam
cc14dbb8a1 Add td_api::premiumLimitTypeActiveStoryCount. 2023-06-15 20:38:46 +03:00
levlam
087765114a Reload views of opened stories every 10 seconds. 2023-06-15 20:07:40 +03:00
levlam
77379bd20f Update interaction info of opened owned stories. 2023-06-15 19:30:28 +03:00
levlam
e7c8b0cded Add and use StoryId::get_input_story_ids. 2023-06-15 18:57:12 +03:00
levlam
37e5847cc3 Add td_api::closeStory and register opened owned stories. 2023-06-15 18:34:05 +03:00
levlam
541165e21f Always treat sent stories as read. 2023-06-15 15:45:40 +03:00
levlam
2aeeb09b4d Add log event for story reading. 2023-06-15 15:25:32 +03:00
levlam
d3a08e06dc Read opened stories on server. 2023-06-15 14:51:41 +03:00
levlam
0daccb0850 Keep max_read_story_id, even ActiveStories are unknown. 2023-06-15 14:10:48 +03:00
levlam
fc878782b6 Add StoryManager::get_active_stories. 2023-06-15 13:49:23 +03:00
levlam
f4d8fddddd Add td_api::updateActiveStories. 2023-06-15 13:47:48 +03:00
levlam
59477f8f98 Improve field names. 2023-06-15 13:44:09 +03:00
levlam
966eee8a07 Update active stories from UserFull. 2023-06-15 13:22:36 +03:00
levlam
56df91b265 Support updateReadStories. 2023-06-15 13:16:31 +03:00
levlam
e89cc266a0 Remove deleted stories from the list of active stories. 2023-06-15 13:10:02 +03:00
levlam
6af37fc003 Always re-check active stories before updating. 2023-06-15 12:46:26 +03:00
levlam
680bb80bad Add ActiveStories cache. 2023-06-15 12:42:42 +03:00
levlam
2968141507 Add only active stories to the list of active stories. 2023-06-15 12:00:19 +03:00
levlam
c72a2161d1 Process telegram_api::storyItemDeleted everywhere. 2023-06-14 20:17:40 +03:00
levlam
26d8af58cc Support storyItemSkipped. 2023-06-14 20:10:57 +03:00
levlam
eeefafc214 Add td_api::activeStories and return it from getUserActiveStories. 2023-06-14 19:27:08 +03:00
levlam
964471af8b Remove redundant story fields. 2023-06-14 16:37:09 +03:00
levlam
a4bf0bffa8 Use webPage duration if story duration isn't available. 2023-06-14 16:19:58 +03:00
levlam
863ee6ac33 Send expired story views to the server. 2023-06-14 16:06:48 +03:00
levlam
e040b63fd8 Add td_api::openStory. 2023-06-14 15:17:24 +03:00
levlam
29a1b7e3d6 Support media timestamps in replies to stories. 2023-06-13 18:20:26 +03:00
levlam
f182e105eb Register web page story sender users for UserFromMessage. 2023-06-13 17:14:19 +03:00
levlam
e4382ee206 Update message content when story from web page is changed. 2023-06-13 16:17:01 +03:00
levlam
62e7640701 Add information about Story to web page. 2023-06-13 15:45:10 +03:00
levlam
deee074e2f Support min-stories. 2023-06-13 14:01:30 +03:00
levlam
64badee6f2 Add get_message_content_min_user_ids and register story sender. 2023-06-13 13:46:12 +03:00
levlam
55d33a8665 Never merge story content files. 2023-06-13 12:46:31 +03:00
levlam
b46d311130 Forward stories without header. 2023-06-12 20:11:41 +03:00
levlam
4b146ee33a Add chatNotificationSettings.mute_stories/use_default_mute_stories. 2023-06-12 20:09:23 +03:00
levlam
0791baa6c1 Add scopeNotificationSettings.mute_stories. 2023-06-12 19:41:18 +03:00
levlam
686f0eabe6 Add td_api::messageStory and td_api::inputMessageStory. 2023-06-12 19:23:58 +03:00
levlam
9a8262f146 Add DialogNotificationSettings::get_input_peer_notify_settings. 2023-06-12 16:29:35 +03:00
levlam
96fef663bb Improve inputStoryContentVideo documentation. 2023-06-12 16:25:31 +03:00
levlam
3938aea03b Improve method name. 2023-06-12 16:10:56 +03:00
levlam
c62c84665a Update sendMessage usages in tests and examples. 2023-06-12 15:30:07 +03:00
levlam
289df57852 Update user.has_active_stories after receiving active stories from server. 2023-06-12 15:07:37 +03:00
levlam
ed4d6df307 Add user.has_active_stories. 2023-06-12 15:04:49 +03:00
levlam
20901b6ac5 Add td_api::getArchivedStories. 2023-06-09 17:21:34 +03:00
levlam
894e246d8f Add sendStory.active_period. 2023-06-09 16:41:40 +03:00
levlam
bd4004e0be Add and use ScopeNotificationSettings::get_input_peer_notify_settings. 2023-06-09 15:08:00 +03:00
levlam
d51ad4f4e9 Update media timestamps in replied messages when story changes. 2023-06-09 14:16:56 +03:00
levlam
0b842dec1e Register media timestamp replies to stories. 2023-06-09 14:08:16 +03:00
levlam
7c386ca353 Support media timestamps in message that a replies to stories. 2023-06-09 13:25:52 +03:00
levlam
48f97c3216 Support dropping of the replied story. 2023-06-08 20:32:57 +03:00
levlam
607ffad07f Ignore is_pinned flag for scheduled messages. 2023-06-08 19:13:53 +03:00
levlam
fa94abaccb Allow to reply stories. 2023-06-08 17:27:24 +03:00
levlam
6116573a3b Add td_api::MessageReplyTo. 2023-06-07 20:32:52 +03:00
levlam
38b8078779 Update reply_in_chat_id documentation. 2023-06-07 18:39:43 +03:00
levlam
b19b4a3e4f Improve handling of expired messages. 2023-06-07 17:00:37 +03:00
levlam
3a20137c03 Use StoryFullId for replied story. 2023-06-07 15:10:46 +03:00
levlam
457511dca9 Add StoryManager::is_inaccessible_story. 2023-06-06 16:11:12 +03:00
levlam
f869eca9c4 Add StoryManager::get_story_duration. 2023-06-06 16:07:29 +03:00
levlam
f4a2dbde41 Add StoryManager::have_story. 2023-06-06 15:58:27 +03:00
levlam
114c92f365 Store replied story sender as DialogId. 2023-06-06 15:56:09 +03:00
levlam
56314c5c79 Add Message.replied_story_sender_user_id/replied_story_id. 2023-06-05 20:45:28 +03:00
levlam
e7ca635db9 Improve MessageReplyHeader field names. 2023-06-05 19:45:05 +03:00
levlam
2467633a74 Support replies to stories in UpdatesManager::is_acceptable_message_reply_header. 2023-06-05 19:29:38 +03:00
levlam
b82d711508 Ignore STORY_NOT_MODIFIED errors for regular users. 2023-06-05 18:28:21 +03:00
levlam
f57ab79f67 Add td_api::internalLinkTypeStory. 2023-06-05 17:56:16 +03:00
levlam
2fcdb02c39 Add td_api::getStory. 2023-06-05 16:55:06 +03:00
levlam
11c353dc7f Add td_api::toggleUserStoriesAreArchived. 2023-06-05 16:07:44 +03:00
levlam
3adf6294dc Fix chat info checks. 2023-06-05 15:30:56 +03:00
levlam
0823f5b169 Add user.stories_are_archived flag. 2023-06-05 15:20:24 +03:00
levlam
a4bd45bd53 Add separate class td_api::storyVideo. 2023-06-05 14:51:32 +03:00
levlam
71faaae22f Support precise video duration. 2023-06-05 14:33:00 +03:00
levlam
dfeeaf8f87 Avoid restoring of deleted stories. 2023-06-02 16:46:10 +03:00
levlam
ede8911f05 Improve updateStpry updates during story edit. 2023-06-02 16:12:18 +03:00
levlam
970173b7f1 Add compare_story_contents function. 2023-06-02 15:54:43 +03:00
levlam
3501529a95 Add updateStoryDeleted, 2023-06-01 18:25:59 +03:00
levlam
7ca2061848 Add DeleteStoryOnServerLogEvent. 2023-06-01 17:41:46 +03:00
levlam
d929790bad Add td_api::deleteStory. 2023-06-01 17:28:49 +03:00
levlam
eec9826dec Process telegram_api::updateStory updates. 2023-06-01 16:27:00 +03:00
levlam
7bea5721bf Add updateStory. 2023-06-01 13:55:11 +03:00
levlam
bf4694db65 Improve error messages. 2023-05-30 15:02:42 +03:00
levlam
0e2fcdde77 Destroy big StoryManager fields asynchronously. 2023-05-30 14:44:30 +03:00
levlam
3a6494dd65 Add td_api::editStory. 2023-05-30 14:41:36 +03:00
levlam
81053032d8 Add dup_story_content. 2023-05-29 23:00:32 +03:00
levlam
a0fd771da8 Add StoryId::is_server(). 2023-05-29 21:43:03 +03:00
levlam
e169cfc7f7 Add copy_story_content function. 2023-05-29 20:48:31 +03:00
levlam
77ab0f45c1 Add td_api::toggleStoryIsPinned. 2023-05-26 14:21:36 +03:00
levlam
936c27577e Check that input content is non-empty inside corresponding functions. 2023-05-25 21:25:16 +03:00
levlam
2684df5f01 Support story reupload in sendStory. 2023-05-25 21:21:10 +03:00
levlam
cdb36baa85 tg_cli: improve story sending. 2023-05-25 21:10:02 +03:00
levlam
dab66ef541 Pass PendingStory to do_send_story. 2023-05-25 21:09:31 +03:00
levlam
85e8116a4b tg_cli: add class PrivacyRules. 2023-05-25 18:38:15 +03:00
levlam
eb1581a233 Add td_api::setStoryPrivacyRules. 2023-05-25 18:18:28 +03:00
levlam
173ba06d62 Support FILE_PART_MISSING errors for stories. 2023-05-25 15:46:04 +03:00
levlam
04764cbc2e Delete partial remote location of uploaded stories. 2023-05-25 15:21:43 +03:00
levlam
c73ae5c781 Add td_api::sendStory. 2023-05-25 15:03:29 +03:00
levlam
b27b9caa89 Add FileType::VideoStory. 2023-05-25 14:19:54 +03:00
levlam
b88312dda1 Add FileType::PhotoStory. 2023-05-25 01:26:26 +03:00
levlam
d2ef7d67a7 Add get_story_content_input_media. 2023-05-24 19:35:45 +03:00
levlam
2b74fb9542 Add get_story_content_any_file_id. 2023-05-24 17:24:36 +03:00
levlam
41da14fd17 Add and use get_story_content_duration. 2023-05-24 16:23:05 +03:00
levlam
9610b06abc Fix error logging. 2023-05-24 15:46:53 +03:00
levlam
0ef9365e02 Add td_api::InputStoryContent. 2023-05-23 16:05:04 +03:00
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