René's URL Explorer Experiment


Title: Add equality rich comparision operators to telegram objects by jsmnbom · Pull Request #604 · python-telegram-bot/python-telegram-bot · GitHub

Open Graph Title: Add equality rich comparision operators to telegram objects by jsmnbom · Pull Request #604 · python-telegram-bot/python-telegram-bot

X Title: Add equality rich comparision operators to telegram objects by jsmnbom · Pull Request #604 · python-telegram-bot/python-telegram-bot

Description: We have made you a wrapper you can't refuse. Contribute to python-telegram-bot/python-telegram-bot development by creating an account on GitHub.

Open Graph Description: Fixes #587 by adding __eq__ and __hash__ methods to the base TelegramObject class to make them work with the == operator. This makes the following classes behave correctly: Animation Audio Bot Cal...

X Description: Fixes #587 by adding __eq__ and __hash__ methods to the base TelegramObject class to make them work with the == operator. This makes the following classes behave correctly: Animation Audio Bot Cal...

Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/pull/604

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:1aa14189-6cad-fbc3-796e-7bb6135316be
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC98A:179BE3:143FE9C:1A80CA9:6A5C56DA
html-safe-nonceb32a52d8ff939d2be875c415a9838ae036f8357e58331e5fd1067b6c406ab8bb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOThBOjE3OUJFMzoxNDNGRTlDOjFBODBDQTk6NkE1QzU2REEiLCJ2aXNpdG9yX2lkIjoiNjcxNTE5NzA0NTcxMTA2Njg0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac027b5f3c7ef3e277554a3ec5d75aad678bfa9f61c7b30ee97f4defaa7ac4becb
hovercard-subject-tagpull_request:120372971
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits
twitter:imagehttps://opengraph.githubassets.com/10fba381c5c276e988433dcd443c8a2c445f72888f106c1ae8c37b157104dcc5/python-telegram-bot/python-telegram-bot/pull/604
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10fba381c5c276e988433dcd443c8a2c445f72888f106c1ae8c37b157104dcc5/python-telegram-bot/python-telegram-bot/pull/604
og:image:altFixes #587 by adding __eq__ and __hash__ methods to the base TelegramObject class to make them work with the == operator. This makes the following classes behave correctly: Animation Audio Bot Cal...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejsmnbom
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git
octolytics-dimension-user_id16178365
octolytics-dimension-user_loginpython-telegram-bot
octolytics-dimension-repository_id38696925
octolytics-dimension-repository_nwopython-telegram-bot/python-telegram-bot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38696925
octolytics-dimension-repository_network_root_nwopython-telegram-bot/python-telegram-bot
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fpull%2F604%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fpull%2F604%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python-telegram-bot%2Fpython-telegram-bot
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits
python-telegram-bot https://github.com/python-telegram-bot
python-telegram-bothttps://github.com/python-telegram-bot/python-telegram-bot
Notifications https://github.com/login?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot
Fork 6.1k https://github.com/login?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot
Star 29.3k https://github.com/login?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot
Code https://github.com/python-telegram-bot/python-telegram-bot
Issues 24 https://github.com/python-telegram-bot/python-telegram-bot/issues
Pull requests 9 https://github.com/python-telegram-bot/python-telegram-bot/pulls
Discussions https://github.com/python-telegram-bot/python-telegram-bot/discussions
Actions https://github.com/python-telegram-bot/python-telegram-bot/actions
Projects https://github.com/python-telegram-bot/python-telegram-bot/projects
Wiki https://github.com/python-telegram-bot/python-telegram-bot/wiki
Security and quality 0 https://github.com/python-telegram-bot/python-telegram-bot/security
Insights https://github.com/python-telegram-bot/python-telegram-bot/pulse
Code https://github.com/python-telegram-bot/python-telegram-bot
Issues https://github.com/python-telegram-bot/python-telegram-bot/issues
Pull requests https://github.com/python-telegram-bot/python-telegram-bot/pulls
Discussions https://github.com/python-telegram-bot/python-telegram-bot/discussions
Actions https://github.com/python-telegram-bot/python-telegram-bot/actions
Projects https://github.com/python-telegram-bot/python-telegram-bot/projects
Wiki https://github.com/python-telegram-bot/python-telegram-bot/wiki
Security and quality https://github.com/python-telegram-bot/python-telegram-bot/security
Insights https://github.com/python-telegram-bot/python-telegram-bot/pulse
tsnoamhttps://github.com/tsnoam
masterhttps://github.com/python-telegram-bot/python-telegram-bot/tree/master
fix-equalshttps://github.com/python-telegram-bot/python-telegram-bot/tree/fix-equals
Conversationhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604
Commits19 (19)https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits
Checkshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/checks
Files changedhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/files
Add equality rich comparision operators to telegram objectshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits#top
tsnoamhttps://github.com/tsnoam
masterhttps://github.com/python-telegram-bot/python-telegram-bot/tree/master
fix-equalshttps://github.com/python-telegram-bot/python-telegram-bot/tree/fix-equals
Add equality rich comparision operator to base classhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/2b28f12a9ba6ab51ed3ef8e0817aef62dfcaec1f
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
2b28f12https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/2b28f12a9ba6ab51ed3ef8e0817aef62dfcaec1f
https://github.com/python-telegram-bot/python-telegram-bot/tree/2b28f12a9ba6ab51ed3ef8e0817aef62dfcaec1f
Use self.__class__ instead of "hardcoding" TelegramObjecthttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/63763c65dffa4cfcd56c741abd8234e479a272b2
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
63763c6https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/63763c65dffa4cfcd56c741abd8234e479a272b2
https://github.com/python-telegram-bot/python-telegram-bot/tree/63763c65dffa4cfcd56c741abd8234e479a272b2
Contact.phone_number really isn't an id imohttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/83e3de17fbc8efe78cba95a63a1e57039a2589a7
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
83e3de1https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/83e3de17fbc8efe78cba95a63a1e57039a2589a7
https://github.com/python-telegram-bot/python-telegram-bot/tree/83e3de17fbc8efe78cba95a63a1e57039a2589a7
Add equality check and hash to ChatMember, Location and Venue.https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/c2ac3a87dbf1cba2a83a0cd6d61015098d3dc0e5
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
c2ac3a8https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/c2ac3a87dbf1cba2a83a0cd6d61015098d3dc0e5
https://github.com/python-telegram-bot/python-telegram-bot/tree/c2ac3a87dbf1cba2a83a0cd6d61015098d3dc0e5
Hash based on self.__class__https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/6693054cddc88927e071b57d7c129b97316e243c
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
6693054https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/6693054cddc88927e071b57d7c129b97316e243c
https://github.com/python-telegram-bot/python-telegram-bot/tree/6693054cddc88927e071b57d7c129b97316e243c
Equality tests part 1https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/cd0b9960721f1ac6b798cea90a81c8c884d36ab0
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
cd0b996https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/cd0b9960721f1ac6b798cea90a81c8c884d36ab0
https://github.com/python-telegram-bot/python-telegram-bot/tree/cd0b9960721f1ac6b798cea90a81c8c884d36ab0
Move AnimationTest and give it some proper valueshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/34ac66319fc50e415c0b09954d223c3b9967fba3
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
34ac663https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/34ac66319fc50e415c0b09954d223c3b9967fba3
https://github.com/python-telegram-bot/python-telegram-bot/tree/34ac66319fc50e415c0b09954d223c3b9967fba3
Equality tests for Animation, Contact and uncached inlinequeryresultshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/65b108c67cf4ef2e4c1fc19408d84ef7eca4ec36
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
65b108chttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/65b108c67cf4ef2e4c1fc19408d84ef7eca4ec36
https://github.com/python-telegram-bot/python-telegram-bot/tree/65b108c67cf4ef2e4c1fc19408d84ef7eca4ec36
Equality tests for more typeshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/67e8291f2ed344327247e242ba992288dcd7cbbd
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
67e8291https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/67e8291f2ed344327247e242ba992288dcd7cbbd
https://github.com/python-telegram-bot/python-telegram-bot/tree/67e8291f2ed344327247e242ba992288dcd7cbbd
Equality tests for cached inlinequeryresultshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/bfe808c263e1db93f69a1c06f5c097927708f933
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
bfe808chttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/bfe808c263e1db93f69a1c06f5c097927708f933
https://github.com/python-telegram-bot/python-telegram-bot/tree/bfe808c263e1db93f69a1c06f5c097927708f933
Fix equality tests for photosize and locationhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/faa1e9845c94bebb690f0a3346514c1b6ca39869
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
faa1e98https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/faa1e9845c94bebb690f0a3346514c1b6ca39869
https://github.com/python-telegram-bot/python-telegram-bot/tree/faa1e9845c94bebb690f0a3346514c1b6ca39869
Whoops, compare with other not selfhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/ce25412a42dcc056191d4e74a4f95e7c63ad50ea
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
ce25412https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/ce25412a42dcc056191d4e74a4f95e7c63ad50ea
https://github.com/python-telegram-bot/python-telegram-bot/tree/ce25412a42dcc056191d4e74a4f95e7c63ad50ea
Whoops, compare with another typehttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/1419561577aca9b74702271510018a83b8f04a7a
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
1419561https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/1419561577aca9b74702271510018a83b8f04a7a
https://github.com/python-telegram-bot/python-telegram-bot/tree/1419561577aca9b74702271510018a83b8f04a7a
Add ChatMember testhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/e596fce74e19937b89245a1a390022a003672253
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
e596fcehttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/e596fce74e19937b89245a1a390022a003672253
https://github.com/python-telegram-bot/python-telegram-bot/tree/e596fce74e19937b89245a1a390022a003672253
Fix super() call on pu2https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/90a0a59040ae93e98ee8cd6d4b73215ce363f019
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
90a0a59https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/90a0a59040ae93e98ee8cd6d4b73215ce363f019
https://github.com/python-telegram-bot/python-telegram-bot/tree/90a0a59040ae93e98ee8cd6d4b73215ce363f019
Use getattr instead of __getattribute__https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/590f6f5009a3cc1d0dee138e63b895285f153c2d
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
590f6f5https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/590f6f5009a3cc1d0dee138e63b895285f153c2d
https://github.com/python-telegram-bot/python-telegram-bot/tree/590f6f5009a3cc1d0dee138e63b895285f153c2d
Do equality checks via _id_keyshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/2bb3ab004a3e03c289ab42a02f6d2ebec438e79f
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
2bb3ab0https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/2bb3ab004a3e03c289ab42a02f6d2ebec438e79f
https://github.com/python-telegram-bot/python-telegram-bot/tree/2bb3ab004a3e03c289ab42a02f6d2ebec438e79f
Do equality checks via _id_attrshttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/98974a145b00d14fd0791a71bbe7f69bd183cefc
https://github.com/jsmnbom
jsmnbomhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=jsmnbom
98974a1https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/98974a145b00d14fd0791a71bbe7f69bd183cefc
https://github.com/python-telegram-bot/python-telegram-bot/tree/98974a145b00d14fd0791a71bbe7f69bd183cefc
base.py: It is customary to declare attributes at the head of a classhttps://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/dc79f40e8bee5891274ffa8cafdfce9575ee51f0
https://github.com/tsnoam
tsnoamhttps://github.com/python-telegram-bot/python-telegram-bot/commits?author=tsnoam
dc79f40https://github.com/python-telegram-bot/python-telegram-bot/pull/604/commits/dc79f40e8bee5891274ffa8cafdfce9575ee51f0
https://github.com/python-telegram-bot/python-telegram-bot/tree/dc79f40e8bee5891274ffa8cafdfce9575ee51f0
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.