Skip to content

bug: replay inline keyboard with callback has crash #84

@A1Gard

Description

@A1Gard

when we send lnlinekeyboards to user after click on those keyboards the bot crashed.
I fixed this bug for myself by this solution add some code above of this line:

if (msg.message.text &&msg.message.text.charAt(0) === '/') {

my fixing code:

if (msg.message == undefined && msg.callback_query !== undefined) {
       msg.message = msg.callback_query.message;
       msg.message.data = msg.callback_query.data;
}

I can commit & pull request for your repo

Thanks 4 dev this bot
Kind regards #

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions