Learn R Programming

rtgstat (version 0.3.2)

tg_post_stat: Getting publication statistics

Description

Getting publication statistics

Usage

tg_post_stat(post_id, group = c("day", "hour"))

Value

list with tibbles

Arguments

post_id

Post ID (t.me/username/123, t.me/c/1256804429/1230 or post ID in TGStat)

group

Grouping results (hour, day)

Details

Obtaining publication statistics - the number of views at the moment, the list of reposts and mentions, the dynamics of the growth of views by hours / days.

References

See also TGStat API Documentation of metrod posts/stat

Examples

Run this code
if (FALSE) {
post_stat <- tg_post_stat(
    post_id = 'https://t.me/R4marketing/887',
    group = 'day'
)

views <- post_stat$views
forwards <- post_stat$forwards
mentions <- post_stat$mentions
}

Run the code above in your browser using DataLab