
Download Channel Replies/Comments By Channel
Source:R/channel_downloads.R
download_channel_replies.RdFetches replies (comments) to channel posts by username or numeric id.
Usage
download_channel_replies(
client,
channel,
message_ids = NULL,
message_limit = 100,
reply_limit = Inf,
include_channel = TRUE,
show_progress = TRUE,
output_file = NULL,
chunk_size = 5000L,
...
)Arguments
- client
TelegramClient instance.
- channel
character or numeric. Channel username (with or without "@") or numeric id.
- message_ids
integer vector or NULL. If NULL, replies are fetched for the most recent posts.
- message_limit
integer. Number of recent posts to inspect when message_ids is NULL.
- reply_limit
integer or Inf. Maximum number of replies per post.
- include_channel
logical. If TRUE, include channel fields on every row.
- show_progress
logical. If TRUE, display a progress bar.
- output_file
character or NULL. When set, rows are written to this CSV file in chunks instead of being accumulated in memory.
- chunk_size
integer. Number of rows to buffer before each write when
output_fileis set. Default 5000.- ...
Passed to client$iter_messages() when fetching recent posts.