We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have trouble updating the live location of my bot. Send text and send location work as expected.
go func() { var _tempMessage = &tb.Message{} for _botResponse := range botResponse { fmt.Println("AutoResponse") switch _botResponse.Reply { case "text": bot.Send(chatGroup, _botResponse.Msg.Text) case "location": _tempMessage, _ = bot.Send(chatGroup, _botResponse.Msg.Location) case "updateLocation": fmt.Println(_tempMessage.MessageSig()) fmt.Println(tb.Location{Lat: _botResponse.Lat, Lng: _botResponse.Lng}) bot.Edit(_tempMessage, tb.Location{Lat: _botResponse.Lat, Lng: _botResponse.Lng}) default: } } }()
The console output shows the correct message and chat id.
Any ideas what is wrong? If you need more information let me know
The text was updated successfully, but these errors were encountered:
Hm.. Seems like it's a bug. I will extend Edit with editMessageLiveLocation method in v2.1.
Edit
editMessageLiveLocation
v2.1
Sorry, something went wrong.
Fixed in 4e2f28c of develop branch
develop
No branches or pull requests
I have trouble updating the live location of my bot.
Send text and send location work as expected.
The console output shows the correct message and chat id.
Any ideas what is wrong?
If you need more information let me know
The text was updated successfully, but these errors were encountered: