View source: R/tg_channel_posts.R
tg_channel_posts | R Documentation |
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
)
channel_id |
Channel ID (@username, t.me/username, t.me/joinchat/AAAAABbbbbcccc ... or channel ID in 'TGStat') |
start_time |
Date of publication from |
end_time |
Date of publication to |
hide_forwards |
Hide reposts from search results |
hide_deleted |
Hide deleted posts |
tibble with channel posts
See also TGStat API Documentation of metrod channels/posts
## Not run:
posts <- tg_channel_posts(
channel_id = "R4marketing",
start_time = "2021-11-01 00:00:00",
end_time = "2021-11-30 23:59:59"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.