optimize go/tg/l1.go

This commit is contained in:
root 2026-06-12 04:08:13 +03:00
parent 8dc80adb1f
commit 56e6a40230
2 changed files with 2 additions and 1 deletions

View file

@ -27,8 +27,9 @@ func main() {
if update.Message == nil { if update.Message == nil {
continue continue
} }
id := update.Message.Chat.ID
if update.Message.IsCommand() && update.Message.Command() == "start" { if update.Message.IsCommand() && update.Message.Command() == "start" {
msg := tgbotapi.NewMessage(update.Message.Chat.ID, "Сергей") msg := tgbotapi.NewMessage(id, "Сергей")
bot.Send(msg) bot.Send(msg)
} }
} }

Binary file not shown.