Link Search Menu Expand Document

Constructor: stats.megagroupStats

Back to constructors index

Supergroup statistics

Attributes:

NameTypeRequiredDescription
periodStatsDateRangeDaysYesPeriod in consideration
membersStatsAbsValueAndPrevYesMember count change for period in consideration
messagesStatsAbsValueAndPrevYesMessage number change for period in consideration
viewersStatsAbsValueAndPrevYesNumber of users that viewed messages, for range in consideration
postersStatsAbsValueAndPrevYesNumber of users that posted messages, for range in consideration
growth_graphStatsGraphYesSupergroup growth graph (absolute subscriber count)
members_graphStatsGraphYesMembers growth (relative subscriber count)
new_members_by_source_graphStatsGraphYesNew members by source graph
languages_graphStatsGraphYesSubscriber language graph (pie chart)
messages_graphStatsGraphYesMessage activity graph (stacked bar graph, message type)
actions_graphStatsGraphYesGroup activity graph (deleted, modified messages, blocked users)
top_hours_graphStatsGraphYesActivity per hour graph (absolute)
weekdays_graphStatsGraphYesActivity per day of week graph (absolute)
top_postersArray of StatsGroupTopPosterYesInfo about most active group members
top_adminsArray of StatsGroupTopAdminYesInfo about most active group admins
top_invitersArray of StatsGroupTopInviterYesInfo about most active group inviters
usersArray of UserYesInfo about users mentioned in statistics

Type: stats.MegagroupStats

Example:

$stats_megagroupStats = ['_' => 'stats.megagroupStats', 'period' => StatsDateRangeDays, 'members' => StatsAbsValueAndPrev, 'messages' => StatsAbsValueAndPrev, 'viewers' => StatsAbsValueAndPrev, 'posters' => StatsAbsValueAndPrev, 'growth_graph' => StatsGraph, 'members_graph' => StatsGraph, 'new_members_by_source_graph' => StatsGraph, 'languages_graph' => StatsGraph, 'messages_graph' => StatsGraph, 'actions_graph' => StatsGraph, 'top_hours_graph' => StatsGraph, 'weekdays_graph' => StatsGraph, 'top_posters' => [StatsGroupTopPoster, StatsGroupTopPoster], 'top_admins' => [StatsGroupTopAdmin, StatsGroupTopAdmin], 'top_inviters' => [StatsGroupTopInviter, StatsGroupTopInviter], 'users' => [User, User]];