ro31337 / libretaxi

Open source Uber #deleteuber
https://t.me/libretaxi_bot
GNU Affero General Public License v3.0
3.85k stars 835 forks source link

Error step "go build" #741

Open albrivas opened 3 years ago

albrivas commented 3 years ago

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

alemat commented 10 months ago

LibreTaxi is the most mean opensource application. do not waste your time.

sudo go get -u github.com/ro31337/libretaxi go: finding github.com/ro31337/libretaxi latest build github.com/ro31337/libretaxi: cannot load libretaxi/callback: malformed module path "libretaxi/callback": missing dot in first path element