Answer the question
In order to leave comments, you need to log in
Why does GoLang panic: runtime error?
I found telegram CLI on the git for my needs. But when sending a message to the group, it knocks out an error (everything is ok in a personal with the user):
Answer the question
In order to leave comments, you need to log in
Because it looks like null comes here https://github.com/shelomentsevd/telegramgo/blob/m... and this answer comes from a third-party library https://github.com/shelomentsevd/mtproto/blob/mast...
Do fmt.println(update) there and see what comes up there. If the message is sent, then you can simply comment out cli.parseUpdate(*update)
But in general there is a jamb, like this:
update, err := cli.mtproto.MessagesSendMessage(false, false, false, true, mtproto.TL_inputPeerChat{Chat_id: int32(id)}, 0, args[1], rand.Int63(), mtproto.TL_null{}, nil)
if err != nil {
return err
}
cli.parseUpdate(*update)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question