17 lines
289 B
Go
17 lines
289 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-telegram/bot"
|
|
"github.com/go-telegram/bot/models"
|
|
)
|
|
|
|
func Handler(ctx context.Context, b *bot.Bot, update *models.Update){
|
|
|
|
b.SendMessage(ctx, &bot.SendMessageParams{
|
|
ChatID: update.Message.Chat.ID,
|
|
Text: update.Message.Text,
|
|
})
|
|
}
|