Этот коммит содержится в:
Claudio Costa
2021-06-17 09:22:16 +02:00
коммит произвёл GitHub
родитель 4b04defea6
Коммит 6bb1cbca63
3 изменённых файлов: 57 добавлений и 0 удалений

Просмотреть файл

@@ -216,6 +216,10 @@ func (a *App) PatchBot(botUserId string, botPatch *model.BotPatch) (*model.Bot,
return nil, err
}
if !bot.WouldPatch(botPatch) {
return bot, nil
}
bot.Patch(botPatch)
user, nErr := a.Srv().Store.User().Get(context.Background(), botUserId)