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
[FEATURE] Add bot mentioned filter #3799
Comments
I would love to work on this. Please assign me if you would like me to do this. |
@shivamsn97 Assigned you 👍 |
Before work goes into a PR for this, I would like to clarify at least the naming of the filter. Also I have two more thoughts:
|
We already have filters.Entity for this? |
Got them. Let me know what you think about the naming of the filter. |
@harshil21 This filters only for the type, not a specific instance. I.e. you can filter for messages that contain any bold word, but not for a specific one |
Okay, my rambling was nonsense, as
and then use a combination of I guess @Poolitzer @harshil21 what do you think? |
Hi @shivamsn97, are you still interested in this? I'd love to take it if you found yourself busy, no pressure tho |
@aelkheir if shivam doesn't reply fover the weekend, I guess you can go ahead and pr :) |
@Bibo-Joshi the name wasn't finalized yet right? That's what I was waiting for. There was no update from harshil and poolitzer. |
Ah, right, my bad. let me ping them offline |
Oh sorry for the confusion. I was just a little excited for my first contribution :). @shivamsn97 you can wait for their input and I'll take the next issue 😄. |
Yes that name and the implementation seems fine with me |
Poolitzer is currently unavailable, but with harshils approval I'd say we're good to go @shivamsn97 :) |
Thanks. I'll let you know about any update or questions. |
I see no sign of another good first issue. So consider me standby for this one 👍 |
Yes, totally. Replied on the issue. |
Due to inactivity, I guess this issue is up for the taking again. If anyone is working on a PR, please leave a short comment. |
I want to work on this feature. Could you check my work https://github.com/ElmurodovJavohir/python-telegram-bot/tree/mention-feature |
@ElmurodovJavohir Please open a pull request so that we can do a proper review:) PS: sorry, I missed #3857 |
Could you a bit explain about user id and user object, if it possible with example |
Sorry, I don't understand what exactly you want explained. Please join us at https://t.me/pythontelegrambotchannel/125 for a easier communication. |
I would love to work on this. Please assign me if you would like me to do this. |
There is already an open PR for it (#3857). If @ElmurodovJavohir doesn't commit/reply in a week, we'll close that PR and assign it to you. |
Is this issue still open? I'd like to try working on this issue. |
This issue is hot, there is a queue of contributors waiting to finish this, I will edit OP to show status |
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
There is currently no filter defined by us which simply checks if message contains a bot mention, so
@botusername message
.Describe the solution you'd like
Make a new filter which checks if a message contains the mention of a bot. So first check if the message has the
telegram.constants.MessageEntityType.MENTION
, and then check if the username is the one of the botDescribe alternatives you've considered
One can do this filter by themselves, but providing one would be nice
Additional context
Maybe having the only_start parameter here would be nice, same as with the command filter.
Assignees:
Current assignee: @ElmurodovJavohir - #3857. If they don't commit/reply by Oct 7th, the next in line to tackle this issue is:- @Prathmesh-rajurkar- @AbhigyanBaruahIssue is being tackled by dev team due to the continued inactivity from the contributors.
The text was updated successfully, but these errors were encountered: