Skip to content
New issue

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

cannot set new welcome msgID when updating the cleanwelcome msgid due to welcome msg did not send #12

Open
soekarnohatta opened this issue May 18, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@soekarnohatta
Copy link
Contributor

This happened when the welcome message did not send by the bot and when the bot sets the new welcome msgid, the error occured. To reproduce it, turn the bot off and wait for several updates and turn it back on. You will see it when the bot is catching the updates.

sent := send(bot, u, res, keyboard, r.Replace(sql.DefaultWelcome), !welcPrefs.DelJoined)

sql.SetCleanWelcome(strconv.Itoa(chat.Id), sent.MessageId)

sent is nil due to the bot did not send the welcome, and when inserting the new msg id it leads to nil object

@RealAkito RealAkito added the bug Something isn't working label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants