feat(telegram): Do not fail on commands init
This commit is contained in:
parent
bebf4b0c17
commit
26bca10b81
1 changed files with 3 additions and 1 deletions
|
|
@ -88,7 +88,9 @@ func (c *TelegramChannel) Start(ctx context.Context) error {
|
||||||
logger.InfoC("telegram", "Starting Telegram bot (polling mode)...")
|
logger.InfoC("telegram", "Starting Telegram bot (polling mode)...")
|
||||||
|
|
||||||
if err := c.initBotCommands(ctx); err != nil {
|
if err := c.initBotCommands(ctx); err != nil {
|
||||||
return fmt.Errorf("failed to initialize bot commands: %w", err)
|
logger.WarnCF("telegram", "Failed to initialize bot commands", map[string]any{
|
||||||
|
"error": err.Error(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
updates, err := c.bot.UpdatesViaLongPolling(ctx, &telego.GetUpdatesParams{
|
updates, err := c.bot.UpdatesViaLongPolling(ctx, &telego.GetUpdatesParams{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue