ITelegramApi
Interface
Members
4
SendAsync
method
Sends HTML-formatted text to a channel/group (a saved target name or a raw @username / numeric chat_id). Blank text no-ops. Best-effort: throttled, and dropped with a health event on failure.Task SendAsync(string target, string text, TelegramSendOptions options = default, CancellationToken cancellationToken = default)SendDmAsync
method
Sends HTML-formatted text as a direct message (a saved DM target name or a user id). The recipient must have /start-ed the bot (bots cannot initiate), otherwise it drops with a clear health event.Task SendDmAsync(string recipient, string text, TelegramSendOptions options = default, CancellationToken cancellationToken = default)IsConnected
property
True when the bot is logged in and the connection is live.bool IsConnectedTargets
property
The saved target names the streamer configured (for reference / discovery).IReadOnlyList<string> Targets
