Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Make MessageEntity objects comparable#1465

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

Merged
tsnoam merged 3 commits intopython-telegram-bot:masterfromBibo-Joshi:me-equal
Aug 23, 2019
Merged

Make MessageEntity objects comparable#1465

tsnoam merged 3 commits intopython-telegram-bot:masterfromBibo-Joshi:me-equal
Aug 23, 2019

Conversation

Bibo-Joshi
Copy link
Member

Right now comparison ofMessageEntity object fails, e.g.

MessageEntity('bold', 2, 4) == MessageEntity('code', 5, 10)

yieldsTrue.

To makeMessageEntity objects comparable, I usedTelegramObjects attribute_id_attr. Also, I added atest_equality totest_messageentity.

@Bibo-JoshiBibo-Joshi mentioned this pull requestAug 8, 2019
@tsnoamtsnoam merged commitc7e9281 intopython-telegram-bot:masterAug 23, 2019
@Bibo-JoshiBibo-Joshi deleted the me-equal branchAugust 26, 2019 14:47
Bibo-Joshi added a commit that referenced this pull requestMar 28, 2020
* Allow for nested MessageEntities in Message._parse_markdown/html, adjust tests* remove testing relict* Use MessageEntitys new equality check (#1465)* Remove unused variable* Update to custom_title feature and slow_mode_delay optionChanges: - custom_title for ChatMember - new method setChatAdministratorCustomTitle for Bot - new slow_mode_delay for ChatUpdate due to new API future `custom_title` from API 4.5 (https://core.telegram.org/bots/api#december-31-2019)* Minor typo fix* Comply with Flake8* Add new MessageEntities and MarkdownV2* Added file_unique_id attrs from API 4.5 and updated tests for it* Fixed test and checked using flake8* Fixed ChatPhoto documentation* Fix Flake8* Add setChatAdminCstmTitle to Bot* Rename MDV2 methods* Change files id attrs to unique id* correct id_attrs for chat_photo* Revert "temporarily skip tests failing b/c missing api 4.5 (#1738)"This reverts commit7cde6ca.* Fix text_markdown_v2 for monospace and text_links* closing remarks from pieter* Minor fix in escape_markdown, improve tests for it* Fix offset bug in Message._parse_** Add test_chatphoto.py* remove debug print from test_message.py* try making codecov happy* Update readme* all hail codecov* Improve Link handling for MarkdownV1 and adjust tests.Closes#1654* Dont use beginning of pre-entity as language in _parse_markdown* Remove debug print* Dummy commit to try fix codecovCo-authored-by: Hoi Dmytro <dmytro.hoi@gmail.com>Co-authored-by: Dmytro Hoi <code@dmytrohoi.com>Co-authored-by: poolitzer <25934244+poolitzer@users.noreply.github.com>
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 20, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@tsnoamtsnoamtsnoam left review comments

@EldinnieEldinnieEldinnie requested changes

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

Successfully merging this pull request may close these issues.

3 participants
@Bibo-Joshi@Eldinnie@tsnoam

[8]ページ先頭

©2009-2025 Movatter.jp