stats.BroadcastStats

class pyrogram.raw.types.stats.BroadcastStats

Channel statistics.

Constructor of BroadcastStats.

Details:
  • Layer: 223

  • ID: 396CA5FC

Parameters:
  • period (StatsDateRangeDays) – Period in consideration

  • followers (StatsAbsValueAndPrev) – Follower count change for period in consideration

  • views_per_post (StatsAbsValueAndPrev) – total_viewcount/postcount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date).

  • shares_per_post (StatsAbsValueAndPrev) – total_sharecount/postcount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)

  • reactions_per_post (StatsAbsValueAndPrev) – total_reactions/postcount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)

  • views_per_story (StatsAbsValueAndPrev) – total_views/storycount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)

  • shares_per_story (StatsAbsValueAndPrev) – total_shares/storycount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)

  • reactions_per_story (StatsAbsValueAndPrev) – total_reactions/storycount, for posts posted during the period in consideration. Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)

  • enabled_notifications (StatsPercentValue) – Percentage of subscribers with enabled notifications

  • growth_graph (StatsGraph) – Channel growth graph (absolute subscriber count)

  • followers_graph (StatsGraph) – Followers growth graph (relative subscriber count)

  • mute_graph (StatsGraph) – Muted users graph (relative)

  • top_hours_graph (StatsGraph) – Views per hour graph (absolute)

  • interactions_graph (StatsGraph) – Interactions graph (absolute)

  • iv_interactions_graph (StatsGraph) – IV interactions graph (absolute)

  • views_by_source_graph (StatsGraph) – Views by source graph (absolute)

  • new_followers_by_source_graph (StatsGraph) – New followers by source graph (absolute)

  • languages_graph (StatsGraph) – Subscriber language graph (pie chart)

  • reactions_by_emotion_graph (StatsGraph) – A graph containing the number of reactions on posts categorized by emotion

  • story_interactions_graph (StatsGraph) – A graph containing the number of story views and shares

  • story_reactions_by_emotion_graph (StatsGraph) – A graph containing the number of reactions on stories categorized by emotion

  • recent_posts_interactions (List of PostInteractionCounters) – Detailed statistics about number of views and shares of recently sent messages and stories

Functions:

This object can be returned by 1 function.

stats.GetBroadcastStats

Get channel statistics

TL Schema

stats.broadcastStats#396ca5fc
period:StatsDateRangeDays
followers:StatsAbsValueAndPrev
views_per_post:StatsAbsValueAndPrev
shares_per_post:StatsAbsValueAndPrev
reactions_per_post:StatsAbsValueAndPrev
views_per_story:StatsAbsValueAndPrev
shares_per_story:StatsAbsValueAndPrev
reactions_per_story:StatsAbsValueAndPrev
enabled_notifications:StatsPercentValue
growth_graph:StatsGraph
followers_graph:StatsGraph
mute_graph:StatsGraph
top_hours_graph:StatsGraph
interactions_graph:StatsGraph
iv_interactions_graph:StatsGraph
views_by_source_graph:StatsGraph
new_followers_by_source_graph:StatsGraph
languages_graph:StatsGraph
reactions_by_emotion_graph:StatsGraph
story_interactions_graph:StatsGraph
story_reactions_by_emotion_graph:StatsGraph
recent_posts_interactions:Vector<PostInteractionCounters>

= stats.BroadcastStats

Parameter Tree

BroadcastStats
├── periodStatsDateRangeDays
│ └── StatsDateRangeDays
│ ├── min_dateint
│ └── max_dateint
├── followersStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── views_per_postStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── shares_per_postStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── reactions_per_postStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── views_per_storyStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── shares_per_storyStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── reactions_per_storyStatsAbsValueAndPrev
│ └── StatsAbsValueAndPrev
│ ├── currentdouble
│ └── previousdouble
├── enabled_notificationsStatsPercentValue
│ └── StatsPercentValue
│ ├── partdouble
│ └── totaldouble
├── growth_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── followers_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── mute_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── top_hours_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── interactions_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── iv_interactions_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── views_by_source_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── new_followers_by_source_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── languages_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── reactions_by_emotion_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── story_interactions_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
├── story_reactions_by_emotion_graphStatsGraph
│ ├── StatsGraphAsync
│ │ └── tokenstring
│ ├── StatsGraphError
│ │ └── errorstring
│ └── StatsGraph
│ ├── jsonDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── zoom_tokenstring (optional)
└── recent_posts_interactionsVector < PostInteractionCounters >
│ ├── msg_idint
│ ├── viewsint
│ ├── forwardsint
│ └── reactionsint
├── story_idint
├── viewsint
├── forwardsint
└── reactionsint

Example

BroadcastStats(
    period=StatsDateRangeDays(
        min_date=0,
        max_date=0
    ),
    followers=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    views_per_post=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    shares_per_post=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    reactions_per_post=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    views_per_story=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    shares_per_story=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    reactions_per_story=StatsAbsValueAndPrev(
        current=0.0,
        previous=0.0
    ),
    enabled_notifications=StatsPercentValue(
        part=0.0,
        total=0.0
    ),
    growth_graph=StatsGraphAsync(token="text"),
    followers_graph=StatsGraphAsync(token="text"),
    mute_graph=StatsGraphAsync(token="text"),
    top_hours_graph=StatsGraphAsync(token="text"),
    interactions_graph=StatsGraphAsync(token="text"),
    iv_interactions_graph=StatsGraphAsync(token="text"),
    views_by_source_graph=StatsGraphAsync(token="text"),
    new_followers_by_source_graph=StatsGraphAsync(token="text"),
    languages_graph=StatsGraphAsync(token="text"),
    reactions_by_emotion_graph=StatsGraphAsync(token="text"),
    story_interactions_graph=StatsGraphAsync(token="text"),
    story_reactions_by_emotion_graph=StatsGraphAsync(token="text"),
    recent_posts_interactions=[
            PostInteractionCountersMessage(
                msg_id=0,
                views=0,
                forwards=0,
                reactions=0
            )
        ],
)