-
Notifications
You must be signed in to change notification settings - Fork 117
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
Updated documentation for chat-members plugin, adding new sections about filters #1181
base: main
Are you sure you want to change the base?
Conversation
…out chat member filters
🚀 Deployed on https://67a4d369e792481cb5477ac8--grammy.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got a few things here and there, mostly nitpicks. Thanks for the extensive docs, though, we need more people like you who do this!
bot.callbackQuery("foo", async (ctx) => { | ||
const chatMember = await ctx.getChatMember(ctx.from.id); | ||
|
||
if (!chatMemberIs(chatMember, "free")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to the docs but the plugin could use a hydration feature that permits
if (!chatMemberIs(chatMember, "free")) { | |
if (!chatMember.is("free")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very nice idea! They could be added for getChatMember and getChatAdministrators.
I already have a draft of the types (kinda messy right now but I'll work on them) and they seem to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@roziscoding anything else? |
not at all, this looks great! |
This pull request adds documentation for chat member filters in the chat-members plugin section.
grammyjs/chat-members#10
Let me know if the paragraph structure or anything else could be improved.