feat(telegram): Changed command scope

This commit is contained in:
Artem Yadelskyi
2026-02-16 13:25:24 +02:00
parent d1a66cbf50
commit 1b1e472df2
+2 -2
View File
@@ -149,7 +149,7 @@ func (c *TelegramChannel) Stop(ctx context.Context) error {
func (c *TelegramChannel) initBotCommands(ctx context.Context) error {
currentCommands, err := c.bot.GetMyCommands(ctx, &telego.GetMyCommandsParams{
Scope: tu.ScopeAllPrivateChats(),
Scope: tu.ScopeDefault(),
})
if err != nil {
return fmt.Errorf("get commands: %w", err)
@@ -180,7 +180,7 @@ func (c *TelegramChannel) initBotCommands(ctx context.Context) error {
err = c.bot.SetMyCommands(ctx, &telego.SetMyCommandsParams{
Commands: commands,
Scope: tu.ScopeAllPrivateChats(),
Scope: tu.ScopeDefault(),
})
if err != nil {
return fmt.Errorf("set commands: %w", err)