powered by
The method allows you to get channel publications according to the specified parameters. Returns channel messages sorted in reverse chronological order (most recent from the top).
tg_channel_posts( channel_id = tg_get_channel_id(), start_time = Sys.Date() - 15, end_time = Sys.Date(), hide_forwards = 0, hide_deleted = 0 )
tibble with channel posts
Channel ID (@username, t.me/username, t.me/joinchat/AAAAABbbbbcccc ... or channel ID in 'TGStat')
Date of publication from
Date of publication to
Hide reposts from search results
Hide deleted posts
See also TGStat API Documentation of metrod channels/posts
if (FALSE) { posts <- tg_channel_posts( channel_id = "R4marketing", start_time = "2021-11-01 00:00:00", end_time = "2021-11-30 23:59:59" ) }
Run the code above in your browser using DataLab