Skip to content

Commit

Permalink
change telegram-bot-api path and version
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelemusiani committed Dec 13, 2023
1 parent 9c422fa commit 5c39247
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log/slog"
"strings"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
"golang.org/x/exp/slices"

"github.com/csunibo/informabot/model"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
require (
github.com/csunibo/unibo-go v0.0.9
github.com/mitchellh/mapstructure v1.5.0
github.com/musianisamuele/telegram-bot-api v0.0.4
github.com/samuelemusiani/telegram-bot-api v0.0.5
golang.org/x/exp v0.0.0-20231127185646-65229373498e
golang.org/x/text v0.14.0
)
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ github.com/csunibo/unibo-go v0.0.9 h1:bLGzNZFvU/TXB+Depn72bO7F3yJ73EjFbM8E9iRs1k
github.com/csunibo/unibo-go v0.0.9/go.mod h1:h2+xnccHa7x48RNB6d07bpHQ01ozw4oihgDOlvVrJ9U=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/musianisamuele/telegram-bot-api v0.0.4 h1:kQoE4Ih/rnyf2i8iCOwcN+zflx+H1A7+PhZx9Kkqppk=
github.com/musianisamuele/telegram-bot-api v0.0.4/go.mod h1:f8epVo400dyxqaQpXt3la1mnhdQW25R1w3yqYT3GQc4=
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ=
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE=
github.com/samuelemusiani/telegram-bot-api v0.0.5 h1:BGuc43eTBYrzvizkq/K/Kfcu4rvRIwPtquGwY/yh1LA=
github.com/samuelemusiani/telegram-bot-api v0.0.5/go.mod h1:/Sagg9PoVMvfJeQ4Dh4sasKOCRC1xsZJ2Kx9C/BSjW8=
golang.org/x/exp v0.0.0-20231127185646-65229373498e h1:Gvh4YaCaXNs6dKTlfgismwWZKyjVZXwOPfIyUaqU3No=
golang.org/x/exp v0.0.0-20231127185646-65229373498e/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
Expand Down
2 changes: 1 addition & 1 deletion model/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"

"github.com/csunibo/informabot/commands"
)
Expand Down
2 changes: 1 addition & 1 deletion model/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
"golang.org/x/exp/slices"

"github.com/csunibo/informabot/utils"
Expand Down
2 changes: 1 addition & 1 deletion model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package model

import (
tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
)

type DataInterface interface {
Expand Down
2 changes: 1 addition & 1 deletion model/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// between the computations of the bot and the driver code, in bot.go
package model

import tgbotapi "github.com/musianisamuele/telegram-bot-api"
import tgbotapi "github.com/samuelemusiani/telegram-bot-api"

// CommandResponse is returned by the command handler, it contains information
// about the command computation.
Expand Down
2 changes: 1 addition & 1 deletion model/responses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
)

func TestCommandResponse_IsEmpty(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion model/timetables.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
)

type InlineKeyboardRows [][]tgbotapi.InlineKeyboardButton
Expand Down
2 changes: 1 addition & 1 deletion model/timetables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
)

func TestGetTimetableCoursesRows(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion utils/bot_utils.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package utils

import (
tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
)

func makeUnknownMember(chatConfigWithUser tgbotapi.ChatConfigWithUser) tgbotapi.ChatMember {
Expand Down
2 changes: 1 addition & 1 deletion utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"
"unicode"

tgbotapi "github.com/musianisamuele/telegram-bot-api"
tgbotapi "github.com/samuelemusiani/telegram-bot-api"
"golang.org/x/text/unicode/norm"
)

Expand Down

0 comments on commit 5c39247

Please sign in to comment.