Skip to content

Commit 2ed3462

Browse files
committed
fix(deps): latest bots-go-core with botkb package
1 parent 7298f19 commit 2ed3462

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/bots-go-framework/bots-api-telegram
33
go 1.22.3
44

55
require (
6-
github.com/bots-go-framework/bots-go-core v0.0.3
6+
github.com/bots-go-framework/bots-go-core v0.1.0
77
github.com/stretchr/testify v1.10.0
88
github.com/strongo/logus v0.2.1
99
github.com/technoweenie/multipartstreamer v1.0.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/bots-go-framework/bots-go-core v0.0.3 h1:z3A7DLUgxbHWxvTCGnkHP9WHpTT9xxROEypoqAfvYIQ=
2-
github.com/bots-go-framework/bots-go-core v0.0.3/go.mod h1:XCn9z4TI8sbgwyus+VDzw7iMY2QCPWEAvl23GMDjeEU=
1+
github.com/bots-go-framework/bots-go-core v0.1.0 h1:mZZ0QC/CfvsLufYjkJR+nYeXkbNEJ5IXwAn2noxpzTE=
2+
github.com/bots-go-framework/bots-go-core v0.1.0/go.mod h1:XCn9z4TI8sbgwyus+VDzw7iMY2QCPWEAvl23GMDjeEU=
33
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
44
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
55
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

tgbotapi/types.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"encoding/json"
88
"errors"
99
"fmt"
10-
botsgocore "github.com/bots-go-framework/bots-go-core"
10+
"github.com/bots-go-framework/bots-go-core/botkb"
1111
"net/url"
1212
"strconv"
1313
"strings"
@@ -304,11 +304,11 @@ type ReplyKeyboardMarkup struct {
304304
}
305305

306306
// KeyboardType returns KeyboardTypeBottom
307-
func (*ReplyKeyboardMarkup) KeyboardType() botsgocore.KeyboardType {
308-
return botsgocore.KeyboardTypeBottom
307+
func (*ReplyKeyboardMarkup) KeyboardType() botkb.KeyboardType {
308+
return botkb.KeyboardTypeBottom
309309
}
310310

311-
var _ botsgocore.Keyboard = (*ReplyKeyboardMarkup)(nil)
311+
var _ botkb.Keyboard = (*ReplyKeyboardMarkup)(nil)
312312

313313
// KeyboardButtonRequestUsers represents a request from the bot to send users
314314
// https://core.telegram.org/bots/api#keyboardbuttonrequestusers
@@ -442,11 +442,11 @@ type ReplyKeyboardHide struct {
442442
}
443443

444444
// KeyboardType returns KeyboardTypeHide
445-
func (*ReplyKeyboardHide) KeyboardType() botsgocore.KeyboardType {
446-
return botsgocore.KeyboardTypeHide
445+
func (*ReplyKeyboardHide) KeyboardType() botkb.KeyboardType {
446+
return botkb.KeyboardTypeHide
447447
}
448448

449-
var _ botsgocore.Keyboard = (*ReplyKeyboardHide)(nil)
449+
var _ botkb.Keyboard = (*ReplyKeyboardHide)(nil)
450450

451451
// InlineKeyboardMarkup is a custom keyboard presented for an inline bot.
452452
type InlineKeyboardMarkup struct {
@@ -465,11 +465,11 @@ func (v *InlineKeyboardMarkup) Validate() error {
465465
}
466466

467467
// KeyboardType returns KeyboardTypeInline
468-
func (*InlineKeyboardMarkup) KeyboardType() botsgocore.KeyboardType {
469-
return botsgocore.KeyboardTypeInline
468+
func (*InlineKeyboardMarkup) KeyboardType() botkb.KeyboardType {
469+
return botkb.KeyboardTypeInline
470470
}
471471

472-
var _ botsgocore.Keyboard = (*InlineKeyboardMarkup)(nil)
472+
var _ botkb.Keyboard = (*InlineKeyboardMarkup)(nil)
473473

474474
// LoginUrl represents a parameter of the inline keyboard button used to automatically authorize a user.
475475
// https://core.telegram.org/bots/api#loginurl
@@ -676,11 +676,11 @@ type ForceReply struct {
676676
}
677677

678678
// KeyboardType returns KeyboardTypeForceReply
679-
func (ForceReply) KeyboardType() botsgocore.KeyboardType {
680-
return botsgocore.KeyboardTypeForceReply
679+
func (ForceReply) KeyboardType() botkb.KeyboardType {
680+
return botkb.KeyboardTypeForceReply
681681
}
682682

683-
var _ botsgocore.Keyboard = (*ForceReply)(nil)
683+
var _ botkb.Keyboard = (*ForceReply)(nil)
684684

685685
// ChosenInlineResult is an inline query result chosen by a User
686686
type ChosenInlineResult struct {

0 commit comments

Comments
 (0)