-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Api 6.1 #3112
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 6.1 #3112
Conversation
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.
Hey! Looks like you edited README.rst or README_RAW.rst. I'm just a friendly reminder to apply relevant changes to both of those files :)
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.
Neat! :) Had a first look through the changes and left some smaller comments below. Will try to have a look at the tests later
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.
Fast job!
To change:
- parameter
login_url
ofLoginUrl
should be changed to sayHTTPS
. - Also in https://t.me/c/1161850314/4292, they removed limits for text length and caption. Should we do that too? Or just document saying that premium users' bots' can write longer captions?
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.
Only have a few comments for the test :)
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.
found out why docs were failing: Also see #3112 (comment)
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.
I think apart from the two comments below I don't have anything else to add :) extending customwebhookbot.py
to use the secret_token
can surely be done in this PR but can also be done later on - might be another good first issue …
Co-authored-by: Bibo-Joshi <[email protected]>
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
tests/test_sticker.py
Outdated
async def test_premium_animation(self, bot): | ||
# testing animation sucks a bit since we can't create a premium sticker. What we can do is | ||
# get a sticker set which includes a premium sticker and check that specific one. | ||
premium_sticker_chat = await bot.get_sticker_set("Flame") |
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.
_set
instead of _chat
?
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.
yes, you don't get a sticker_chat, you get a set. https://docs.python-telegram-bot.org/en/v20.0a1/telegram.bot.html#telegram.Bot.get_sticker_set ;P
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 my point: premium_sticker_chat
-> premium_sticker_set
;P
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.
Ohh you meant the variable I only saw the request
Co-authored-by: Harshil <[email protected]>
Checklist for PRs
.. versionadded:: version
,.. versionchanged:: version
or.. deprecated:: version
to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)AUTHORS.rst
(optional)__all__
sIf the PR contains API changes (otherwise, you can delete this passage)
If relevant:
telegram.constants
and shortcuts to them as class variablesbot_methods.rst
README.rst
andREADME_RAW.rst
(including the badge), as well astelegram.constants.BOT_API_VERSION