Title: Can't send messages to supergroups using supergroup's @username · Issue #74 · python-botogram/botogram · GitHub
Open Graph Title: Can't send messages to supergroups using supergroup's @username · Issue #74 · python-botogram/botogram
X Title: Can't send messages to supergroups using supergroup's @username · Issue #74 · python-botogram/botogram
Description: If you are trying to send a message to supergroup via it's @username instead of chat_id, botogram fails with this error: 16:34.42 - WARNING - Chat 0 is not available to your bot: 16:34.42 - WARNING - The chat with ID 0 doesn't exist 16:3...
Open Graph Description: If you are trying to send a message to supergroup via it's @username instead of chat_id, botogram fails with this error: 16:34.42 - WARNING - Chat 0 is not available to your bot: 16:34.42 - WARNING...
X Description: If you are trying to send a message to supergroup via it's @username instead of chat_id, botogram fails with this error: 16:34.42 - WARNING - Chat 0 is not available to your bot: 16:34.42 - WAR...
Opengraph URL: https://github.com/python-botogram/botogram/issues/74
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't send messages to supergroups using supergroup's @username","articleBody":"If you are trying to send a message to supergroup via it's @username instead of chat_id, botogram fails with this error:\n\n```\n16:34.42 - WARNING - Chat 0 is not available to your bot:\n16:34.42 - WARNING - The chat with ID 0 doesn't exist\n16:34.42 - WARNING - Update #979264137 processing aborted!\n```\n\nLast time it worked in 0.2.2 release. It's been broken since commit https://github.com/pietroalbini/botogram/commit/9e142ea693d5f1806719e6023770559391d924aa\n\nNow if botogram detects string as chat_id it thinks that we are going to send our message to the telegram channel, which has slightly different Telegram API call, where we need to specify `\"id\": 0, \"type\": \"channel\"`.\n\nBecause both supergroups and channels have string ids but different API calls, I can't think of any good workaround. The ugly thing would be to make a separate method for sending to supergroups by @username.\n","author":{"url":"https://github.com/thesharp","@type":"Person","name":"thesharp"},"datePublished":"2016-08-04T16:47:39Z","url":"https://github.com/python-botogram/botogram/issues/74"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:e6ea3d3c-e5cf-cf05-f410-d0dd8a60ccc5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBD4:35ED52:85AC9:B27BB:6AEC7E63 |
| html-safe-nonce | 7524908dd3f3eff22e17f942ea18fb5cc5a758309bdd1de5d2e04d4cb00c227e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkQ0OjM1RUQ1Mjo4NUFDOTpCMjdCQjo2QUVDN0U2MyIsInZpc2l0b3JfaWQiOiI3MzgxMjAwODU2NzU4OTEwNTYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c6166657a1c628164b779cafcf8b3db8d816bf1471768492c0c331a9bc832c4b |
| hovercard-subject-tag | issue:169421167 |
| 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-botogram/botogram/74/issue_layout |
| twitter:image | https://opengraph.githubassets.com/abebb8b73918d95a900634bf16a6276cba83f529e3b7745a045167d7bfee0e19/python-botogram/botogram/issues/74 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/abebb8b73918d95a900634bf16a6276cba83f529e3b7745a045167d7bfee0e19/python-botogram/botogram/issues/74 |
| og:image:alt | If you are trying to send a message to supergroup via it's @username instead of chat_id, botogram fails with this error: 16:34.42 - WARNING - Chat 0 is not available to your bot: 16:34.42 - WARNING... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thesharp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bdf579c3278a003eb7fd86a77e2ed31e813bf4e18e5958458d2bdc3941566b0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-botogram/botogram git https://github.com/python-botogram/botogram.git |
| octolytics-dimension-user_id | 38258752 |
| octolytics-dimension-user_login | python-botogram |
| octolytics-dimension-repository_id | 38007898 |
| octolytics-dimension-repository_nwo | python-botogram/botogram |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38007898 |
| octolytics-dimension-repository_network_root_nwo | python-botogram/botogram |
| 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 | 22d3a69d3307500eb5a7909970fc0d9a7735cb70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width