optimize go/tg/l1.go
This commit is contained in:
parent
8dc80adb1f
commit
56e6a40230
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
go/tg/output/l1
BIN
go/tg/output/l1
Binary file not shown.
Loading…
Reference in a new issue