init
This commit is contained in:
commit
973c19f148
7 changed files with 95 additions and 0 deletions
15
internal/commands/start.go
Normal file
15
internal/commands/start.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-telegram/bot"
|
||||
"github.com/go-telegram/bot/models"
|
||||
)
|
||||
|
||||
func StartCommand(ctx context.Context, b *bot.Bot, update *models.Update) {
|
||||
b.SendMessage(ctx, &bot.SendMessageParams{
|
||||
ChatID: update.Message.Chat.ID,
|
||||
Text: "Hello, world!",
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue