Skip to content

Commit

Permalink
chore: remove unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Jun 10, 2024
1 parent 42fa017 commit ce28161
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/app/handler/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,16 @@ func (h *ProfileHandler) enter(b *gotgbot.Bot, ctx *ext.Context) error {
h.dispathcer.AddHandler(handlers.NewCallback(filters.CallbackQuery(func(cq *gotgbot.CallbackQuery) bool {
return strings.HasPrefix(cq.Data, "profile_")
}), func(b *gotgbot.Bot, ctx *ext.Context) error {
ICCID := strings.TrimPrefix(ctx.CallbackQuery.Data, "profile_")
_, _, err := b.EditMessageReplyMarkup(&gotgbot.EditMessageReplyMarkupOpts{
if _, _, err := b.EditMessageReplyMarkup(&gotgbot.EditMessageReplyMarkupOpts{
ChatId: ctx.EffectiveChat.Id,
MessageId: ctx.EffectiveMessage.MessageId,
ReplyMarkup: gotgbot.InlineKeyboardMarkup{
InlineKeyboard: [][]gotgbot.InlineKeyboardButton{},
},
})
if err != nil {
}); err != nil {
return err
}
h.data[ctx.EffectiveChat.Id] = ICCID
h.data[ctx.EffectiveChat.Id] = strings.TrimPrefix(ctx.CallbackQuery.Data, "profile_")
return h.handleAskAction(b, ctx)
}))
return handlers.NextConversationState(ProfileStateHandleAction)
Expand Down

0 comments on commit ce28161

Please sign in to comment.