fix
This commit is contained in:
@@ -326,6 +326,14 @@ func (b *Bot) Update(u *echotron.Update) {
|
|||||||
strings.HasPrefix(u.Message.Text, "/start project_"))
|
strings.HasPrefix(u.Message.Text, "/start project_"))
|
||||||
|
|
||||||
if b.CurrentState == nil && !isStartCommand {
|
if b.CurrentState == nil && !isStartCommand {
|
||||||
|
_, err := b.SendMessage(
|
||||||
|
"⚠️ Бот был перезапущен. Извиняемся за неудобства :(\n\nВас отправили в главное меню",
|
||||||
|
b.ChatID,
|
||||||
|
&echotron.MessageOptions{ParseMode: echotron.HTML},
|
||||||
|
)
|
||||||
|
if err != nil {
|
||||||
|
log.Error().Err(err).Msg("SendMessage failed while sending restart notice")
|
||||||
|
}
|
||||||
b.SetState(b.commandRouter("/start"), EditMessage)
|
b.SetState(b.commandRouter("/start"), EditMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user