Skip to content

fixed unpinChatMessageBug #1108

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

Closed
wants to merge 2 commits into from
Closed

Conversation

serjou1
Copy link

@serjou1 serjou1 commented Jul 27, 2023

  • All tests pass
  • I have run npm run doc

Description

unpinChatMessage method had a bug, it didn't use messageId properly so I got error
Failed to unpin message: TypeError: Cannot create property 'chat_id' on number <message id>

References

@serjou1 serjou1 changed the title fixed fixed unpinChatMessageBug Jul 27, 2023
@kamikazechaser
Copy link
Collaborator

It is an optional param. Use it like:

bot.unpinChatMessage(GROUPID, {message_id: xxx})

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.

2 participants