René's URL Explorer Experiment


Title: pyrogram: update MIN_CHANNEL_ID and MIN_CHAT_ID by rebeeh · Pull Request #1430 · pyrogram/pyrogram · GitHub

Open Graph Title: pyrogram: update MIN_CHANNEL_ID and MIN_CHAT_ID by rebeeh · Pull Request #1430 · pyrogram/pyrogram

X Title: pyrogram: update MIN_CHANNEL_ID and MIN_CHAT_ID by rebeeh · Pull Request #1430 · pyrogram/pyrogram

Description: Contribution Request: Update MIN_CHANNEL_ID and MIN_CHAT_ID in Pyrogram Title: Update MIN_CHANNEL_ID and MIN_CHAT_ID to Fix "Peer id invalid" Error Description This contribution request proposes an update to the MIN_CHANNEL_ID and MIN_CHAT_ID values in Pyrogram. The current values are causing a "Peer id invalid" error in some scenarios. This update changes the MIN_CHANNEL_ID to -1007852516352 and the MIN_CHAT_ID to -999999999999 to address this issue. Changes Old Value: MIN_CHANNEL_ID = -1002147483647 New Value: MIN_CHANNEL_ID = -1007852516352 Old Value: MIN_CHAT_ID = -2147483647 New Value: MIN_CHAT_ID = -999999999999 Reason for Change The existing MIN_CHANNEL_ID and MIN_CHAT_ID values are no longer valid in certain cases, leading to the "Peer id invalid" error. By updating the values, we aim to resolve this error and ensure that Pyrogram can handle channel and chat IDs correctly. Code Update The change will be made in the relevant Pyrogram file where MIN_CHANNEL_ID and MIN_CHAT_ID are defined. # Current values MIN_CHANNEL_ID = -1002147483647 MIN_CHAT_ID = -2147483647 # Updated values MIN_CHANNEL_ID = -1007852516352 MIN_CHAT_ID = -999999999999 Testing To verify this change, tests will be conducted to ensure that channel and chat IDs are processed correctly without causing the "Peer id invalid" error. Specific test cases will include: Creating a channel with an ID greater than -1007852516352 and verifying successful handling. Creating a chat with an ID greater than -999999999999 and verifying successful handling. Handling channel and chat IDs close to the boundary values to ensure no off-by-one errors or similar issues. General regression testing to ensure no other functionality is impacted. Impact This update is expected to fix the "Peer id invalid" error without introducing any breaking changes. All existing functionalities should remain intact, with improved reliability in handling channel and chat IDs. Acknowledgements Special thanks to the users and developers who identified and reported the "Peer id invalid" error and contributed to the discussion around the solution. Additional Notes Please review and merge this contribution to improve the robustness of Pyrogram in handling Telegram channel and chat IDs. If there are any questions or further suggestions, I am available to discuss them. Thank you for your time and consideration. Submitted by: ebiza

Open Graph Description: Contribution Request: Update MIN_CHANNEL_ID and MIN_CHAT_ID in Pyrogram Title: Update MIN_CHANNEL_ID and MIN_CHAT_ID to Fix "Peer id invalid" Error Description This contribution request p...

X Description: Contribution Request: Update MIN_CHANNEL_ID and MIN_CHAT_ID in Pyrogram Title: Update MIN_CHANNEL_ID and MIN_CHAT_ID to Fix "Peer id invalid" Error Description This contribution r...

Opengraph URL: https://github.com/pyrogram/pyrogram/pull/1430

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b5b3428b-2fff-6cd1-97cc-57b2c861ed58
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC9A:FF0D0:3DF4F5F:54C57E4:6973EE6F
html-safe-nonceaa3ddd0106eb77068ebee8b60ff9748baed94eea27a2366afcf8e221f22ae5e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzlBOkZGMEQwOjNERjRGNUY6NTRDNTdFNDo2OTczRUU2RiIsInZpc2l0b3JfaWQiOiI2Mjk3OTg4MzYyMzAxNTU4ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1fedfa5e1ea1c8137aa8bba2931645260dc606467b25036b118eb6fc993a4872
hovercard-subject-tagpull_request:1910606539
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pyrogram/pyrogram/pull/1430/files
twitter:imagehttps://avatars.githubusercontent.com/u/135997849?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/135997849?s=400&v=4
og:image:altContribution Request: Update MIN_CHANNEL_ID and MIN_CHAT_ID in Pyrogram Title: Update MIN_CHANNEL_ID and MIN_CHAT_ID to Fix "Peer id invalid" Error Description This contribution request p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None99794f659b61e238a7ec37595eeb36b54a0ba1f2ae246f51ccb8ac5e4f08812e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/pyrogram/pyrogram git https://github.com/pyrogram/pyrogram.git
octolytics-dimension-user_id34474300
octolytics-dimension-user_loginpyrogram
octolytics-dimension-repository_id113971228
octolytics-dimension-repository_nwopyrogram/pyrogram
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113971228
octolytics-dimension-repository_network_root_nwopyrogram/pyrogram
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8b15a65f03216f079a4ae509ff400d3e2ce03b58
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpyrogram%2Fpyrogram%2Fpull%2F1430%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpyrogram%2Fpyrogram%2Fpull%2F1430%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=pyrogram%2Fpyrogram
Reloadhttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
Reloadhttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
Reloadhttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
pyrogram https://patch-diff.githubusercontent.com/pyrogram
pyrogramhttps://patch-diff.githubusercontent.com/pyrogram/pyrogram
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpyrogram%2Fpyrogram
Fork 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fpyrogram%2Fpyrogram
Star 4.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fpyrogram%2Fpyrogram
Code https://patch-diff.githubusercontent.com/pyrogram/pyrogram
Pull requests 61 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pulls
Actions https://patch-diff.githubusercontent.com/pyrogram/pyrogram/actions
Security 0 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/security
Insights https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pulse
Code https://patch-diff.githubusercontent.com/pyrogram/pyrogram
Pull requests https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pulls
Actions https://patch-diff.githubusercontent.com/pyrogram/pyrogram/actions
Security https://patch-diff.githubusercontent.com/pyrogram/pyrogram/security
Insights https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pulse
rebeehhttps://patch-diff.githubusercontent.com/rebeeh
pyrogram:masterhttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/tree/master
rebeeh:masterhttps://patch-diff.githubusercontent.com/rebeeh/pyrogram/tree/master
Conversation 10 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430
Commits 2 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/commits
Checks 0 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/checks
Files changed https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
Please reload this pagehttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
pyrogram: update MIN_CHANNEL_ID and MIN_CHAT_ID https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
cc892fa pyrogram: update MIN_CHANNEL_ID rebeeh Jun 9, 2024 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/commits/cc892fa802d5ca647b408f6de98b75186bb05962
235fb91 pyrogram: update MIN_CHANNEL_ID and MIN_CHAT_ID rebeeh Jun 10, 2024 https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/commits/235fb91c12bb47f7004196c95d3f70c1f53747b6
Clear filters https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
Please reload this pagehttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
Please reload this pagehttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files
pyrogram/utils.pyhttps://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files#diff-609365833a579d022053b63a0f7984b0b8cc8baf5e6bfc8a201def452c90d4ee
View file https://patch-diff.githubusercontent.com/pyrogram/pyrogram/blob/235fb91c12bb47f7004196c95d3f70c1f53747b6/pyrogram/utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files#diff-609365833a579d022053b63a0f7984b0b8cc8baf5e6bfc8a201def452c90d4ee
https://patch-diff.githubusercontent.com/pyrogram/pyrogram/pull/1430/files#diff-609365833a579d022053b63a0f7984b0b8cc8baf5e6bfc8a201def452c90d4ee
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.