When a new user DM's the bot for the first time, the message usually gets added to pendingRequests. When you try to approve the chat directly and message back instantly, there is an error. Approving the new user works fine, however the message will not be emitted and throw an error.
When a new user DM's the bot for the first time, the message usually gets added to
pendingRequests
. When you try to approve the chat directly and message back instantly, there is an error. Approving the new user works fine, however the message will not be emitted and throw an error.Example of breaking code:
I fixed this issue with this pull request. Leaving here in case someone has the same issue.