Commit Graph

202 Commits

Author SHA1 Message Date
levlam
8068507675 Move boost-related methods to BoostManager. 2023-10-19 16:38:40 +03:00
levlam
81bdd4294b Remove td_api::canBoostChat. 2023-10-19 15:46:09 +03:00
levlam
bd36f48054 Update layer to 166. 2023-09-28 16:13:36 +03:00
levlam
2a0d757ec6 Explicitly pass Unix time to can_get_story_viewers. 2023-10-04 11:28:56 +03:00
levlam
5d7f34f659 Add StoryManager::has_unexpired_viewers. 2023-09-28 16:31:17 +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
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
1e2c0ce814 Rename FullMessageId to MessageFullId. 2023-09-21 19:11:17 +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
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
583168767d Add td_api::getChatBoosts. 2023-09-16 12:22:11 +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
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
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
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
levlam
868b6b930f Add StoryManager::is_my_story. 2023-09-04 21:34:17 +03:00
levlam
08639b520a Allow to set suggested custom reactions from stories. 2023-08-25 19:11:24 +03:00
levlam
153ff5503b Update layer to 164. 2023-08-15 22:45:37 +03:00
levlam
fc98363d95 Add StoryManager::on_update_dialog_has_pinned_stories/on_update_dialog_stories_hidden. 2023-09-02 23:23:38 +03:00
levlam
3a75502e77 Add StoryManager::on_update_dialog_max_read_story_id. 2023-09-02 23:13:52 +03:00
levlam
f7e5889408 Add StoryManager::on_update_dialog_max_story_ids. 2023-09-02 23:06:24 +03:00
levlam
84ac48405f Add source to send_update_chat_active_stories. 2023-08-16 17:57:16 +03:00
levlam
5c63b80cce Don't send updateChatActiveStories about chats with unknown active stories. 2023-08-16 17:34:36 +03:00
levlam
89b2a51d2d Add yet unsent stories to chat active stories. 2023-08-16 16:06:16 +03:00
levlam
a7b17b9e43 Support cancel of story upload. 2023-08-16 15:10:41 +03:00
levlam
a0990ef2fd Various fixes. 2023-08-15 17:45:16 +03:00
levlam
fd2df72321 Add td_api::canSendStory. 2023-08-11 19:43:26 +03:00
levlam
499cd02a0a Assign temporary identifier to yet unsent stories. 2023-08-11 15:16:24 +03:00
levlam
02b4793ba2 Process telegram_api::updateStoryID. 2023-08-11 14:07:13 +03:00
levlam
a5ca926971 Split yet unsent stories by chats. 2023-08-10 23:29:48 +03:00
levlam
5c1be5a1e7 Send updateStoryStealthMode when it changes. 2023-08-08 01:18:33 +03:00
levlam
8a41582fab Store and load stealth mode state. 2023-08-08 01:04:08 +03:00
levlam
32f6026278 Use send_closure_later to avoid cycles between ContactsManager and StoryManager. 2023-08-07 23:04:23 +03:00
levlam
c4f3dd013d Reload story to repair can_get_viewers. 2023-08-07 22:03:26 +03:00
levlam
3bc3ef3335 Update reaction count when get story viewers. 2023-08-07 20:04:06 +03:00
levlam
fdd44e8f9d Support filters in getStoryViewers. 2023-08-07 19:56:55 +03:00