Skip to content

Conversation

@savefolla
Copy link

No description provided.

Copy link

@Ayve1 Ayve1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is different variable name in chatId and chat_id.
Should be:
chat_id: chat_id
in line 608

@rotimi-best
Copy link

I have been expecting this feature for a while now. I hope it is committed to the master branch as I need it in one of my projects.

Copy link

@rotimi-best rotimi-best left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
 *
 * @param {number|string} chat_id //change from chatId to chat_id
 * @param {number} message_id
 * @returns {Promise<boolean>}
 */
 deleteMessage(chat_id, message_id) {
    const params = { chat_id, message_id }; // Simplify this line since the arguments are the similar to the params keys

    return this.call('deleteMessage', Object.assign(params));
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants