Title: reply_text keyword argument allow_sending_without_reply fails when do_quote is True · Issue #4807 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: reply_text keyword argument allow_sending_without_reply fails when do_quote is True · Issue #4807 · python-telegram-bot/python-telegram-bot
X Title: reply_text keyword argument allow_sending_without_reply fails when do_quote is True · Issue #4807 · python-telegram-bot/python-telegram-bot
Description: Issue The call await update.message.reply_text("Message",allow_sending_without_reply=True, do_quote=True) gives the following error: ValueError: "allow_sending_without_reply" and "reply_parameters" are mutually exclusive. Thoughts to res...
Open Graph Description: Issue The call await update.message.reply_text("Message",allow_sending_without_reply=True, do_quote=True) gives the following error: ValueError: "allow_sending_without_reply" and "reply_parameters"...
X Description: Issue The call await update.message.reply_text("Message",allow_sending_without_reply=True, do_quote=True) gives the following error: ValueError: "allow_sending_without_reply" an...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/4807
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"reply_text keyword argument allow_sending_without_reply fails when do_quote is True","articleBody":"### Issue\nThe call `await update.message.reply_text(\"Message\",allow_sending_without_reply=True, do_quote=True)` gives the following error:\n\n`ValueError: \"allow_sending_without_reply\" and \"reply_parameters\" are mutually exclusive.`\n\n### Thoughts to resolve them\n\nI am not sure how we want to deal with it. On the one hand, this being by default only the case in groups will make it harder to spot when developing the bot, and the error is not helpful since the user didn't actually pass reply_parameters, the library did for them.\n\nOn the other hand this is a depreciated argument, so one could totally argue that an user who went through the effort of doing this could instead use\n\n```\nawait update.message.reply_text(\n \"Message\",\n reply_parameters=ReplyParameters(update.message.message_id, allow_sending_without_reply=True)\n )\n```\n\nwithout much effort.\n\nThis comes from the group and my debugging efforts because I didnt understand the issue first either. https://t.me/pythontelegrambotgroup/779293?thread=779293","author":{"url":"https://github.com/Poolitzer","@type":"Person","name":"Poolitzer"},"datePublished":"2025-05-28T14:32:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4807/python-telegram-bot/issues/4807"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f9fa1c7-7c09-43bd-a523-88ba4addaf15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AB0:19CD0D:10D533C:1694BF9:6A5B89B7 |
| html-safe-nonce | 86bc6e3493efceeb47f375d35a5acb2b4d182fb2a311cd9970af25fac456a9be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUIwOjE5Q0QwRDoxMEQ1MzNDOjE2OTRCRjk6NkE1Qjg5QjciLCJ2aXNpdG9yX2lkIjoiODkwOTcyMTA0Mzg0NzU4MDA4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17a096c2a95f8c01f5ecfdf6f31bd274a3824208266d2b76a27d2c2cc1e4391e |
| hovercard-subject-tag | issue:3097602544 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/4807/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eee0580c587d41f221cca9dfb2a6590b0c7b51907e98f5265e268cf5bf95db6e/python-telegram-bot/python-telegram-bot/issues/4807 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eee0580c587d41f221cca9dfb2a6590b0c7b51907e98f5265e268cf5bf95db6e/python-telegram-bot/python-telegram-bot/issues/4807 |
| og:image:alt | Issue The call await update.message.reply_text("Message",allow_sending_without_reply=True, do_quote=True) gives the following error: ValueError: "allow_sending_without_reply" and "reply_parameters"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Poolitzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width