When I execute the "go build" command, I get the following error in the terminal:
./libretaxi.go:43:14: cannot use bot (type *"github.com/go-telegram-bot-api/telegram-bot-api".BotAPI) as type *"libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".BotAPI in assignment ./libretaxi.go:58:42: cannot use u (type "github.com/go-telegram-bot-api/telegram-bot-api".UpdateConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".UpdateConfig in argument to context.Bot.GetUpdatesChan ./libretaxi.go:79:56: cannot use "github.com/go-telegram-bot-api/telegram-bot-api".NewCallback(cb.ID, "👌 OK") (type "github.com/go-telegram-bot-api/telegram-bot-api".CallbackConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".CallbackConfig in argument to context.Bot.AnswerCallbackQuery ./libretaxi.go:84:30: cannot use removeButton (type "github.com/go-telegram-bot-api/telegram-bot-api".EditMessageReplyMarkupConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".Chattable in argument to context.Bot.Send: "github.com/go-telegram-bot-api/telegram-bot-api".EditMessageReplyMarkupConfig does not implement "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".Chattable (missing "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".method method) have "github.com/go-telegram-bot-api/telegram-bot-api".method() string want "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".method() string ./libretaxi.go:149:5: cannot use msg (type "github.com/go-telegram-bot-api/telegram-bot-api".MessageConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".MessageConfig in field value
Can you help me?
Thanks
When I execute the "go build" command, I get the following error in the terminal:
./libretaxi.go:43:14: cannot use bot (type *"github.com/go-telegram-bot-api/telegram-bot-api".BotAPI) as type *"libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".BotAPI in assignment ./libretaxi.go:58:42: cannot use u (type "github.com/go-telegram-bot-api/telegram-bot-api".UpdateConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".UpdateConfig in argument to context.Bot.GetUpdatesChan ./libretaxi.go:79:56: cannot use "github.com/go-telegram-bot-api/telegram-bot-api".NewCallback(cb.ID, "👌 OK") (type "github.com/go-telegram-bot-api/telegram-bot-api".CallbackConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".CallbackConfig in argument to context.Bot.AnswerCallbackQuery ./libretaxi.go:84:30: cannot use removeButton (type "github.com/go-telegram-bot-api/telegram-bot-api".EditMessageReplyMarkupConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".Chattable in argument to context.Bot.Send: "github.com/go-telegram-bot-api/telegram-bot-api".EditMessageReplyMarkupConfig does not implement "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".Chattable (missing "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".method method) have "github.com/go-telegram-bot-api/telegram-bot-api".method() string want "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".method() string ./libretaxi.go:149:5: cannot use msg (type "github.com/go-telegram-bot-api/telegram-bot-api".MessageConfig) as type "libretaxi/vendor/github.com/go-telegram-bot-api/telegram-bot-api".MessageConfig in field valueCan you help me?
Thanks