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

Make Filters.command only accept MessageEntity commands #1744

Merged
merged 4 commits into from
Feb 8, 2020

Conversation

Bibo-Joshi
Copy link
Member

@Bibo-Joshi Bibo-Joshi commented Jan 31, 2020

Since CommandHandler is only accepting commands marked by a MessageEntity since v12.0.0 (#1114), I thought it fitting for Filters.command to do the same.
However, this is a breaking change, which is why I put this into the v13 Milestone.

Closes #1755

@Bibo-Joshi Bibo-Joshi added this to the 13.0 milestone Jan 31, 2020
@Bibo-Joshi Bibo-Joshi modified the milestones: 13.0, 12.4 Feb 6, 2020
@Bibo-Joshi
Copy link
Member Author

Added changes as discussed in #1755 . Implementation is similar to the one of filters.text(iterable) to make sure, that nobody as to change filters.command and filters.command()

Bibo-Joshi added a commit that referenced this pull request Feb 6, 2020
@Bibo-Joshi
Copy link
Member Author

CI fail unrelated (TestUpdater.test_webhook_invalid_posts)

@tsnoam tsnoam modified the milestones: 12.4, 12.5, v12.4.1 Feb 8, 2020
@tsnoam tsnoam merged commit f9a8cd9 into master Feb 8, 2020
@tsnoam tsnoam deleted the command-filter-update branch February 8, 2020 12:54
harshil21 added a commit to tmslads/Shanispeakbot that referenced this pull request Feb 11, 2020
Added support for nicknames. This will be used globally. In `/tell`

Fixed the structure of user_data.

Added missing escape character in one of the answers in `8ball.py`.

You can now use `/8ball` anywhere in the message to trigger it, rather than just in the beginning of the message. Refer (#1744)[python-telegram-bot/python-telegram-bot#1744]

Added conversation timeouts to both conversations.

Group handler now filters both group and text messages. Might eliminate the need of checking if it is None or not.

Now calculates your age based on DOB.

General fixes

Improved import statements (again)
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make filters.command work as expected
2 participants