diff --git a/go/tg/l1.go b/go/tg/l1.go index 8ec10c1..ef68ea3 100644 --- a/go/tg/l1.go +++ b/go/tg/l1.go @@ -27,8 +27,9 @@ func main() { if update.Message == nil { continue } + id := update.Message.Chat.ID if update.Message.IsCommand() && update.Message.Command() == "start" { - msg := tgbotapi.NewMessage(update.Message.Chat.ID, "Сергей") + msg := tgbotapi.NewMessage(id, "Сергей") bot.Send(msg) } } diff --git a/go/tg/output/l1 b/go/tg/output/l1 index 9ddaee8..663c0c7 100755 Binary files a/go/tg/output/l1 and b/go/tg/output/l1 differ