Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Start using MessageLimit.DEEP_LINK_LENGTH constant#4597

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

nemacysts
Copy link
Contributor

This constant was added back in#3315 - but it was never referenced in the ptb codebase.

However, as mentioned in a comment added in#3351 - there was at least one place that was hardcoding this value rather than referencing the named constant

As far as I can tell (with the help ofgit grep), this is likely the only 64->MessageLimit.DEEP_LINK_LENGTH swap that can be made :)

NOTE: I've verified that the formatting of the documentation looks the same in terms of line breaks after breaking the ValueError exception text into two lines (i.e., there's no extraneous newlines)

Verification:

  • run precommit
  • run tests
  • make -C docs/ singlehtml and inspected the generated docs

This constant was added back inpython-telegram-bot#3315 - but it was never referenced inthe ptb codebase.However, as mentioned in a comment added inpython-telegram-bot#3351 - there was at leastone place that was hardcoding this value rather than referencing thenamed constantAs far as I can tell (with the help of `git grep`), this is likely theonly 64->MessageLimit.DEEP_LINK_LENGTH swap that can be made :)NOTE: I've verified that the formatting of the documentation looks thesame in terms of line breaks after breaking the ValueError exceptiontext into two lines (i.e., there's no extraneous newlines)
@nemacysts
Copy link
ContributorAuthor

hmm, the failingcheck-conformity tests seem unrelated to this change - please correct me if I'm wrong tho!

Copy link
Member

@Bibo-JoshiBibo-Joshi left a comment

Choose a reason for hiding this comment

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

Nice catch, thank you very much!
The failing test is just due to#4594 not being part of your branch, but that's indeed not your fault :)

nemacysts reacted with thumbs up emoji
@Bibo-JoshiBibo-Joshi merged commitce9742a intopython-telegram-bot:masterDec 7, 2024
23 of 24 checks passed
cuevasrja pushed a commit to USB-CI3715/python-telegram-bot that referenced this pull requestDec 9, 2024
cuevasrja added a commit to USB-CI3715/python-telegram-bot that referenced this pull requestDec 13, 2024
…cia entre módulos (#1)* Refactor datetime imports to use alias for consistency* Refactor datetime imports to use alias for consistency across modules* Refactor datetime imports to use alias for consistency in ChatMemberUpdated, Giveaway, Message, MessageOrigin modules* Refactor datetime imports to use alias for consistency in ChatJoinRequest and ChatMember modules* Full Support for Bot API 8.0 (python-telegram-bot#4566,python-telegram-bot#4568,python-telegram-bot#4570,python-telegram-bot#4571,python-telegram-bot#4574,python-telegram-bot#4576,python-telegram-bot#4572)* Documentation Improvements (python-telegram-bot#4573,python-telegram-bot#4565)Co-authored-by: Snehashish Biswas <coderrx06@gmail.com>Co-authored-by: poolitzer <github@poolitzer.eu>* Bump Version to v21.8 (python-telegram-bot#4583)* Bump `srvaroa/labeler` from 1.11.1 to 1.12.0 (python-telegram-bot#4586)Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>* Bump `pylint` to v3.3.2 to Improve Python 3.13 Support (python-telegram-bot#4590)* Bump `codecov/codecov-action` from 4 to 5 (python-telegram-bot#4585)Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>* Allow `Sequence` Input for `allowed_updates` in `Application` and `Updater` Methods (python-telegram-bot#4589)* Full Support for Bot API 8.1 (python-telegram-bot#4594)* Use `MessageLimit.DEEP_LINK_LENGTH` in `helpers.create_deep_linked_url` (python-telegram-bot#4597)* Bump `pytest` from 8.3.3 to 8.3.4 (python-telegram-bot#4596)Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>* Update `aiolimiter` requirement from ~=1.1.0 to >=1.1,<1.3 (python-telegram-bot#4595)Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>* Bump Version to v21.9 (python-telegram-bot#4601)* Reorder imports to unify `datetime`  usage across modules---------Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>Co-authored-by: Snehashish Biswas <coderrx06@gmail.com>Co-authored-by: poolitzer <github@poolitzer.eu>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Co-authored-by: Luis Pérez <luis.i.perez.0@gmail.com>Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>Co-authored-by: Juan Andrés Cuevas <juanandrescuevas14@gmail.com>
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 15, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@Bibo-JoshiBibo-JoshiBibo-Joshi approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@nemacysts@Bibo-Joshi

[8]ページ先頭

©2009-2025 Movatter.jp