tg_post_stat | R Documentation |
Getting publication statistics
tg_post_stat(post_id, group = c("day", "hour"))
post_id |
Post ID (t.me/username/123, t.me/c/1256804429/1230 or post ID in TGStat) |
group |
Grouping results (hour, day) |
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.
list with tibbles
See also TGStat API Documentation of metrod posts/stat
## Not run:
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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.