Commit Graph

348 Commits

Author SHA1 Message Date
levlam
a689c8df56 Add Story.can_get_statistics. 2023-11-17 14:58:51 +03:00
levlam
cda21980b0 Add td_api::getStoryStatistics. 2023-11-17 14:26:51 +03:00
levlam
d20ed201b0 Update layer to 167. 2023-11-09 19:37:26 +03:00
levlam
edc7dbb038 Forcely preload chat in some StoryManager methods. 2023-11-29 20:10:48 +03:00
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
c2d5ca2d3f Allow to get the list of prepaid Premium giveaways. 2023-10-10 14:11:59 +03:00
levlam
bd36f48054 Update layer to 166. 2023-09-28 16:13:36 +03:00
levlam
605a3af4b2 Add and use td::any_of. 2023-10-21 20:41:31 +03:00
levlam
4a02f50969 Add chatBoostStatus.boost_url. 2023-09-25 18:40:55 +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
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
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
a2c8aa7165 Update channel participant count when receiving boost status. 2023-09-21 14:05:40 +03:00
levlam
246f2ca42f Recheck received from the server channels. 2023-09-20 20:34:21 +03:00
levlam
154b2cb315 Recheck loaded from database channels. 2023-09-20 19:51: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
6dbec3fda7 Use td_api::error in td_api::updateStorySendFailed. 2023-09-19 19:13:45 +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
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
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
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
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