From 3531ae2cbea4e4c802e9e9c6deebb636399e0171 Mon Sep 17 00:00:00 2001 From: Negasus Date: Wed, 21 Feb 2024 12:25:56 +0300 Subject: [PATCH] rollback example `echo` --- examples/echo/main.go | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/examples/echo/main.go b/examples/echo/main.go index 22e5ae4..b280e1e 100644 --- a/examples/echo/main.go +++ b/examples/echo/main.go @@ -2,7 +2,6 @@ package main import ( "context" - "fmt" "os" "os/signal" @@ -31,25 +30,8 @@ func main() { } func handler(ctx context.Context, b *bot.Bot, update *models.Update) { - _, err := b.SetMessageReaction(ctx, &bot.SetMessageReactionParams{ - ChatID: update.Message.Chat.ID, - MessageID: update.Message.ID, - Reaction: []models.ReactionType{ - { - Type: models.ReactionTypeTypeEmoji, - ReactionTypeEmoji: &models.ReactionTypeEmoji{ - Type: "emoji", - Emoji: "👍", - }, - }, - }, + b.SendMessage(ctx, &bot.SendMessageParams{ + ChatID: update.Message.Chat.ID, + Text: update.Message.Text, }) - if err != nil { - fmt.Printf("Error: %v", err) - } - - //b.SendMessage(ctx, &bot.SendMessageParams{ - // ChatID: update.Message.Chat.ID, - // Text: update.Message.Text, - //}) }