Skip to content

Commit

Permalink
build(deps): bump gopkg.in/tucnak/telebot.v2 from 2.4.1 to 2.5.0 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jan 22, 2022
1 parent ac364ea commit f0d2aac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/tidwall/buntdb v1.2.9
github.com/urfave/cli/v2 v2.3.0
github.com/xhit/go-str2duration/v2 v2.0.0
gopkg.in/tucnak/telebot.v2 v2.4.1
gopkg.in/tucnak/telebot.v2 v2.5.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/tucnak/telebot.v2 v2.4.1 h1:bUOFHtHhuhPekjHGe1Q1BmITvtBLdQI4yjSMC405KcU=
gopkg.in/tucnak/telebot.v2 v2.4.1/go.mod h1:BgaIIx50PSRS9pG59JH+geT82cfvoJU/IaI5TJdN3v8=
gopkg.in/tucnak/telebot.v2 v2.5.0 h1:i+NynLo443Vp+Zn3Gv9JBjh3Z/PaiKAQwcnhNI7y6Po=
gopkg.in/tucnak/telebot.v2 v2.5.0/go.mod h1:BgaIIx50PSRS9pG59JH+geT82cfvoJU/IaI5TJdN3v8=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
Expand Down
6 changes: 3 additions & 3 deletions notification/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewTelegram(controller *order.Controller, settings model.Settings, options
}

for _, user := range settings.Telegram.Users {
if u.Message.Sender.ID == user {
if int(u.Message.Sender.ID) == user {
return true
}
}
Expand Down Expand Up @@ -114,7 +114,7 @@ func NewTelegram(controller *order.Controller, settings model.Settings, options
func (t telegram) Start() {
go t.client.Start()
for _, id := range t.settings.Telegram.Users {
_, err := t.client.Send(&tb.User{ID: id}, "Bot initialized.", t.defaultMenu)
_, err := t.client.Send(&tb.User{ID: int64(id)}, "Bot initialized.", t.defaultMenu)
if err != nil {
log.Error(err)
}
Expand All @@ -123,7 +123,7 @@ func (t telegram) Start() {

func (t telegram) Notify(text string) {
for _, user := range t.settings.Telegram.Users {
_, err := t.client.Send(&tb.User{ID: user}, text)
_, err := t.client.Send(&tb.User{ID: int64(user)}, text)
if err != nil {
log.Error(err)
}
Expand Down

0 comments on commit f0d2aac

Please sign in to comment.