MadelineProtoDocs/docs/API_docs/constructors/stats.megagroupStats.md
2020-09-12 12:47:38 +02:00

2.9 KiB

title description image redirect_from
stats.megagroupStats stats.megagroupStats attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/stats_megagroupStats.html

Constructor: stats.megagroupStats

Back to constructors index

Attributes:

Name Type Required
period StatsDateRangeDays Yes
members StatsAbsValueAndPrev Yes
messages StatsAbsValueAndPrev Yes
viewers StatsAbsValueAndPrev Yes
posters StatsAbsValueAndPrev Yes
growth_graph StatsGraph Yes
members_graph StatsGraph Yes
new_members_by_source_graph StatsGraph Yes
languages_graph StatsGraph Yes
messages_graph StatsGraph Yes
actions_graph StatsGraph Yes
top_hours_graph StatsGraph Yes
weekdays_graph StatsGraph Yes
top_posters Array of StatsGroupTopPoster Yes
top_admins Array of StatsGroupTopAdmin Yes
top_inviters Array of StatsGroupTopInviter Yes
users Array of User Yes

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]];

Or, if you're into Lua:

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}, top_admins={StatsGroupTopAdmin}, top_inviters={StatsGroupTopInviter}, users={User}}