Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/platform/telegram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ pub async fn run(

// Publish the slash-command menu to Telegram so clients show suggestions.
// Best-effort: a network failure here must not block the bot from running.
match bot.set_my_commands(supported_commands()).await {
Ok(_) => info!(
"Registered {} Telegram commands",
supported_commands().len()
),
let commands = supported_commands();
let count = commands.len();
match bot.set_my_commands(commands).await {
Ok(_) => info!("Registered {} Telegram commands", count),
Err(e) => warn!(error = %e, "Failed to register Telegram commands"),
}

Expand Down
Loading