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

Added deleteMessage support #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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