-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
feat: get pinned messages #3004
Draft
alechkos
wants to merge
9
commits into
pedroslopez:main
Choose a base branch
from
alechkos:get-pinned-msg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shirser121
reviewed
May 3, 2024
This comment was marked as off-topic.
This comment was marked as off-topic.
alechkos
force-pushed
the
get-pinned-msg
branch
from
October 3, 2024 02:33
aa86c97
to
ac21953
Compare
alechkos
force-pushed
the
get-pinned-msg
branch
from
October 3, 2024 02:34
ac21953
to
8a98edd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Table of Contents
- Description
- Usage Example
- I Want to Test this PR
- I Got an Error While Testing This PR ❌
- How Has the PR Been Tested (latest test on 04.05.2024)
- Types of Changes
Description
The PR adds
Client.getPinnedMessages
andChat.getPinnedMessages
methods to retrieve all pinned messages from a chat or a group by providing the chat ID.Methods return an array of
Message
instances, or an empty array if there are no pinned messages in a chat/group.Usage Example
To test this PR by yourself you should do two steps:
1. Install the PR by running one of the following commands:
2. Lock your WWeb version on 2.2412.54:
If you encounter any errors while testing this PR, please provide in a comment:
console.log(await client.getWWebVersion());
Important
You have to reapply the PR each time it is changed (new commits were pushed since your last application)
How Has The PR Been Tested (latest test on 04.05.2024)
Tested with a code provided in usage example.
Tested On:
Types of accounts:
Environment:
Types of Changes
Checklist