Skip to contents

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
)

Arguments

client

TelegramClient instance.

channel

character or numeric. Channel username (with or without "@") or numeric id.

timeout_sec

numeric. Timeout in seconds for network operations.

reconnect_on_timeout

logical. Reconnect on timeout if TRUE.

Value

A tibble with last_message_id and a note.