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).
Usage
tg_channel_posts(
channel_id = tg_get_channel_id(),
start_time = Sys.Date() - 15,
end_time = Sys.Date(),
hide_forwards = 0,
hide_deleted = 0
)
Arguments
- 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