% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/channel_downloads.R
\name{download_channel_replies}
\alias{download_channel_replies}
\title{Download Channel Replies/Comments By Channel}
\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{
\item{client}{TelegramClient instance.}

\item{channel}{character or numeric. Channel username (with or without "@") or numeric id.}

\item{message_ids}{integer vector or NULL. If NULL, replies are fetched for the most recent posts.}

\item{message_limit}{integer. Number of recent posts to inspect when message_ids is NULL.}

\item{reply_limit}{integer or Inf. Maximum number of replies per post.}

\item{include_channel}{logical. If TRUE, include channel fields on every row.}

\item{show_progress}{logical. If TRUE, display a progress bar.}

\item{output_file}{character or NULL. When set, rows are written to this CSV file in chunks instead of being accumulated in memory.}

\item{chunk_size}{integer. Number of rows to buffer before each write when \code{output_file} is set. Default 5000.}

\item{...}{Passed to client$iter_messages() when fetching recent posts.}
}
\value{
A tibble.
}
\description{
Fetches replies (comments) to channel posts by username or numeric id.
}
