Commit Graph

357 Commits

Author SHA1 Message Date
levlam
ca2cf0e25c Add storyViewers.total_forward_count. 2023-12-25 15:10:48 +03:00
levlam
fd0135393c Process chats from stories.storyViewsList. 2023-12-19 13:04:21 +03:00
levlam
5725cf0388 Add td_api::storyAreaTypeMessage. 2023-12-18 14:40:11 +03:00
levlam
c6ce44815e Update layer to 169. 2023-12-05 12:30:12 +03:00
levlam
15b8ad5c66 Add MediaArea::get_input_media_areas. 2023-12-18 14:24:07 +03:00
levlam
542271a1fd Don't save get_id() to a used-once variable before switch. 2023-12-12 23:20:41 +03:00
levlam
e2ce0e7a0b Keep logging only if the chat has active stories. 2023-11-30 20:32:16 +03:00
levlam
8859f40e89 Allow to specify original story in sendStory. 2023-11-29 22:10:51 +03:00
levlam
dcad0f413e Add td_api::story.repost_info. 2023-11-29 19:22:54 +03:00
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