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

Api 5.0 WP 9.1 #2196

Merged
merged 8 commits into from
Nov 20, 2020
Merged

Api 5.0 WP 9.1 #2196

merged 8 commits into from
Nov 20, 2020

Conversation

Poolitzer
Copy link
Member

Adding copy message and poll question length constant

@Poolitzer Poolitzer mentioned this pull request Nov 8, 2020
28 tasks
telegram/poll.py Outdated Show resolved Hide resolved
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments. Three more general ones:

  • we need tests for MessageID
  • copy_message should be tested for defaults, i.e. parse_mode and allow_sending_without_reply (maybe see my Api 5.0 WP 9.6 (allow_sending_without_reply) #2192 for how I tested that)
  • If you're starting with shortcuts already, maybe it's a good idea to just do all of WP12 here

telegram/bot.py Outdated Show resolved Hide resolved
telegram/message.py Outdated Show resolved Hide resolved
telegram/messageid.py Outdated Show resolved Hide resolved
telegram/messageid.py Outdated Show resolved Hide resolved
telegram/constants.py Outdated Show resolved Hide resolved
telegram/poll.py Outdated Show resolved Hide resolved
@Bibo-Joshi Bibo-Joshi added this to the 13.1 milestone Nov 9, 2020
@Bibo-Joshi Bibo-Joshi added the API label Nov 9, 2020
@Poolitzer
Copy link
Member Author

test for default allow_sending_without_reply

I mean thats hard to do rn because it isnt merged yet and I feel like cherry picking is over the top. Just wait for merging #2192?

# Conflicts:
#	telegram/bot.py
#	telegram/callbackquery.py
#	tests/test_bot.py
#	tests/test_callbackquery.py
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the updates! IMO we should wait for #2192 so that we can add the tests here and don't forget … Still, I left you a little work for the meantime :)

telegram/callbackquery.py Outdated Show resolved Hide resolved
telegram/constants.py Outdated Show resolved Hide resolved
telegram/messageid.py Outdated Show resolved Hide resolved
telegram/messageid.py Outdated Show resolved Hide resolved
telegram/poll.py Outdated Show resolved Hide resolved
telegram/poll.py Outdated Show resolved Hide resolved
tests/test_bot.py Outdated Show resolved Hide resolved
tests/test_bot.py Show resolved Hide resolved
tests/test_bot.py Outdated Show resolved Hide resolved
tests/test_messageid.py Show resolved Hide resolved
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some last nitpicks left ;)

telegram/poll.py Outdated Show resolved Hide resolved
telegram/poll.py Outdated Show resolved Hide resolved
telegram/poll.py Outdated Show resolved Hide resolved
tests/test_bot.py Outdated Show resolved Hide resolved
Poolitzer and others added 2 commits November 20, 2020 15:40
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de>
@Bibo-Joshi Bibo-Joshi merged commit b8ebcac into api-5.0-master Nov 20, 2020
@Bibo-Joshi Bibo-Joshi deleted the api-5.0-wp9.1 branch November 20, 2020 14:59
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants