15 lines
311 B
Go
15 lines
311 B
Go
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!",
|
|
})
|
|
}
|