Skip to content

Commit 1cfd12c

Browse files
committed
Clarify RegisterCommands method documentation
Updated the summary documentation for the `RegisterCommands` method in the `BotBuilder` class within the `TelegramBot.Builders` namespace. The new documentation specifies that this method only registers commands in the Telegram UI and that controllers need to be registered separately. It also clarifies that commands can be used without calling this method.
1 parent 367b080 commit 1cfd12c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/TelegramBot/Builders/BotBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public BotBuilder UseServices(IServiceCollection services)
124124
}
125125

126126
/// <summary>
127-
/// Register commands for the bot.
127+
/// Register commands for the bot. This method only registers the commands in Telegram UI.
128+
/// Controllers should be registered separately. You can use commands even without this method.
128129
/// </summary>
129130
/// <param name="setup">The setup for the command registration.</param>
130131
/// <param name="language">The language for the commands, default is English.</param>

0 commit comments

Comments
 (0)