Gets the latest message ID and uses it as an upper-bound estimate of total posts. This is approximate due to deletions and gaps in message IDs.
Usage
estimate_channel_post_count(
client,
channel,
timeout_sec = getOption("telegramR.iter_timeout", 60),
reconnect_on_timeout = TRUE
)Examples
if (FALSE) { # \dontrun{
client <- TelegramClient$new("my_session", api_id = 123, api_hash = "abc")
client$connect()
estimate_channel_post_count(client, "channelname")
} # }
