Add message reaction statistics.

This commit is contained in:
levlam 2023-11-17 13:40:39 +03:00
parent f466628e20
commit 362f43303e
2 changed files with 7 additions and 3 deletions

View File

@ -5957,8 +5957,10 @@ chatStatisticsSupergroup period:dateRange member_count:statisticalValue message_
chatStatisticsChannel period:dateRange member_count:statisticalValue mean_view_count:statisticalValue mean_share_count:statisticalValue enabled_notifications_percentage:double member_count_graph:StatisticalGraph join_graph:StatisticalGraph mute_graph:StatisticalGraph view_count_by_hour_graph:StatisticalGraph view_count_by_source_graph:StatisticalGraph join_by_source_graph:StatisticalGraph language_graph:StatisticalGraph message_interaction_graph:StatisticalGraph message_reaction_graph:StatisticalGraph story_interaction_graph:StatisticalGraph story_reaction_graph:StatisticalGraph instant_view_interaction_graph:StatisticalGraph recent_message_interactions:vector<chatStatisticsMessageInteractionInfo> = ChatStatistics;
//@description A detailed statistics about a message @message_interaction_graph A graph containing number of message views and shares
messageStatistics message_interaction_graph:StatisticalGraph = MessageStatistics;
//@description A detailed statistics about a message
//@message_interaction_graph A graph containing number of message views and shares
//@message_reaction_graph A graph containing number of message reactions
messageStatistics message_interaction_graph:StatisticalGraph message_reaction_graph:StatisticalGraph = MessageStatistics;
//@description A point on a Cartesian plane @x The point's first coordinate @y The point's second coordinate

View File

@ -235,7 +235,9 @@ class GetBroadcastStatsQuery final : public Td::ResultHandler {
static td_api::object_ptr<td_api::messageStatistics> convert_message_stats(
telegram_api::object_ptr<telegram_api::stats_messageStats> obj) {
return td_api::make_object<td_api::messageStatistics>(convert_stats_graph(std::move(obj->views_graph_)));
return td_api::make_object<td_api::messageStatistics>(
convert_stats_graph(std::move(obj->views_graph_)),
convert_stats_graph(std::move(obj->reactions_by_emotion_graph_)));
}
class GetMessageStatsQuery final : public Td::ResultHandler {