René's URL Explorer Experiment


Title: add `random_id` optional parameter to `send_message` method to ensure idempotency · Issue #70 · hydrogram/hydrogram · GitHub

Open Graph Title: add `random_id` optional parameter to `send_message` method to ensure idempotency · Issue #70 · hydrogram/hydrogram

X Title: add `random_id` optional parameter to `send_message` method to ensure idempotency · Issue #70 · hydrogram/hydrogram

Description: Checklist I believe the idea is awesome and would benefit the framework I have searched in the issue tracker for similar requests, including closed ones Description When working with messaging services, it is crucial that listeners have ...

Open Graph Description: Checklist I believe the idea is awesome and would benefit the framework I have searched in the issue tracker for similar requests, including closed ones Description When working with messaging serv...

X Description: Checklist I believe the idea is awesome and would benefit the framework I have searched in the issue tracker for similar requests, including closed ones Description When working with messaging serv...

Opengraph URL: https://github.com/hydrogram/hydrogram/issues/70

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add `random_id` optional parameter to `send_message` method to ensure idempotency","articleBody":"### Checklist\n\n- [x] I believe the idea is awesome and would benefit the framework\n- [x] I have searched in the issue tracker for similar requests, including closed ones\n\n### Description\n\nWhen working with messaging services, it is crucial that listeners have idempotent logic, which ensures that no operations will be duplicated if the service fails and tries to reprocess.\n\nMTProto has a parameter where you can define an ID, which will ensure that the message is sent only once:\n\n\u003e **random_id**\t\tlong\n\u003e \"Unique client message ID required to prevent message resending\"\n\u003e\n\u003e https://core.telegram.org/method/messages.sendMessage\n\nIt exists in the raw functions, but the abstraction that wraps it doesn't have a parameter that we can pass to it:\n\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_message.py#L149\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_photo.py#L192\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_poll.py#L216\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_sticker.py#L166\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_venue.py#L127\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_video.py#L265\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_video_note.py#L191\n- https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_voice.py#L183\n\nAlternatively I am calling the raw function directly.","author":{"url":"https://github.com/d3cryptofc","@type":"Person","name":"d3cryptofc"},"datePublished":"2025-09-02T13:54:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/70/hydrogram/issues/70"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0814d67f-d1fb-8ef5-9603-a13b8f30a380
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C70:3C277B:1A6EFF0:23AC57F:6972B9EE
html-safe-noncef0911f0ba613d25c94eb2989407e24a6a483f77565078173c86dd9ed9f0b5ec1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzcwOjNDMjc3QjoxQTZFRkYwOjIzQUM1N0Y6Njk3MkI5RUUiLCJ2aXNpdG9yX2lkIjoiODMwNzExNTA3NzU0NjQ1NzU4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac31925bac5ae8e2f989188e01c5bce5c9f4cd2cb26182ed337e648dc0ade855b6
hovercard-subject-tagissue:3376153660
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hydrogram/hydrogram/70/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ff018a2bb65edf72d181b32d1a8f2757e2a4aae7021409cec8e97bcbcd118856/hydrogram/hydrogram/issues/70
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff018a2bb65edf72d181b32d1a8f2757e2a4aae7021409cec8e97bcbcd118856/hydrogram/hydrogram/issues/70
og:image:altChecklist I believe the idea is awesome and would benefit the framework I have searched in the issue tracker for similar requests, including closed ones Description When working with messaging serv...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamed3cryptofc
hostnamegithub.com
expected-hostnamegithub.com
None51c0d0848f5569c6fa2198e9d69bd5f8f94a83c9fa3659e40728e7732afab130
turbo-cache-controlno-preview
go-importgithub.com/hydrogram/hydrogram git https://github.com/hydrogram/hydrogram.git
octolytics-dimension-user_id153278131
octolytics-dimension-user_loginhydrogram
octolytics-dimension-repository_id711555265
octolytics-dimension-repository_nwohydrogram/hydrogram
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id711555265
octolytics-dimension-repository_network_root_nwohydrogram/hydrogram
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
release10c5e2f2307495b2750073db87e9a5d3356a924f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues/70#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhydrogram%2Fhydrogram%2Fissues%2F70
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%2Fhydrogram%2Fhydrogram%2Fissues%2F70
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=hydrogram%2Fhydrogram
Reloadhttps://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues/70
Reloadhttps://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues/70
Reloadhttps://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues/70
hydrogram https://patch-diff.githubusercontent.com/hydrogram
hydrogramhttps://patch-diff.githubusercontent.com/hydrogram/hydrogram
Please reload this pagehttps://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues/70
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fhydrogram%2Fhydrogram
Fork 46 https://patch-diff.githubusercontent.com/login?return_to=%2Fhydrogram%2Fhydrogram
Star 203 https://patch-diff.githubusercontent.com/login?return_to=%2Fhydrogram%2Fhydrogram
Code https://patch-diff.githubusercontent.com/hydrogram/hydrogram
Issues 14 https://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues
Pull requests 2 https://patch-diff.githubusercontent.com/hydrogram/hydrogram/pulls
Discussions https://patch-diff.githubusercontent.com/hydrogram/hydrogram/discussions
Actions https://patch-diff.githubusercontent.com/hydrogram/hydrogram/actions
Projects 0 https://patch-diff.githubusercontent.com/hydrogram/hydrogram/projects
Security 0 https://patch-diff.githubusercontent.com/hydrogram/hydrogram/security
Insights https://patch-diff.githubusercontent.com/hydrogram/hydrogram/pulse
Code https://patch-diff.githubusercontent.com/hydrogram/hydrogram
Issues https://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues
Pull requests https://patch-diff.githubusercontent.com/hydrogram/hydrogram/pulls
Discussions https://patch-diff.githubusercontent.com/hydrogram/hydrogram/discussions
Actions https://patch-diff.githubusercontent.com/hydrogram/hydrogram/actions
Projects https://patch-diff.githubusercontent.com/hydrogram/hydrogram/projects
Security https://patch-diff.githubusercontent.com/hydrogram/hydrogram/security
Insights https://patch-diff.githubusercontent.com/hydrogram/hydrogram/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/hydrogram/hydrogram/issues/70
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/hydrogram/hydrogram/issues/70
add random_id optional parameter to send_message method to ensure idempotencyhttps://patch-diff.githubusercontent.com/hydrogram/hydrogram/issues/70#top
enhancementNew feature, request or code enhancement.https://github.com/hydrogram/hydrogram/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/d3cryptofc
https://github.com/d3cryptofc
d3cryptofchttps://github.com/d3cryptofc
on Sep 2, 2025https://github.com/hydrogram/hydrogram/issues/70#issue-3376153660
https://core.telegram.org/method/messages.sendMessagehttps://core.telegram.org/method/messages.sendMessage
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_message.py#L149https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_message.py#L149
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_photo.py#L192https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_photo.py#L192
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_poll.py#L216https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_poll.py#L216
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_sticker.py#L166https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_sticker.py#L166
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_venue.py#L127https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_venue.py#L127
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_video.py#L265https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_video.py#L265
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_video_note.py#L191https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_video_note.py#L191
https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_voice.py#L183https://github.com/hydrogram/hydrogram/blob/dev/hydrogram/methods/messages/send_voice.py#L183
enhancementNew feature, request or code enhancement.https://github.com/hydrogram/hydrogram/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.