Commit Graph

8632 Commits

Author SHA1 Message Date
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