Title: Error With Adding Handler · Issue #4803 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Error With Adding Handler · Issue #4803 · python-telegram-bot/python-telegram-bot
X Title: Error With Adding Handler · Issue #4803 · python-telegram-bot/python-telegram-bot
Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? \Python312\Lib\site-packages\telegram\ext_application.py", line 1259, in process_update for handlers in self.handlers.values(): ^^^^^^^^^^^^^^^^^^^^^^ Runtim...
Open Graph Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? \Python312\Lib\site-packages\telegram\ext_application.py", line 1259, in process_update for handlers in self.handlers...
X Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? \Python312\Lib\site-packages\telegram\ext_application.py", line 1259, in process_update for handlers in self.han...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/4803
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error With Adding Handler","articleBody":"### What kind of feature are you missing? Where do you notice a shortcoming of PTB?\n\n\\Python312\\Lib\\site-packages\\telegram\\ext\\_application.py\", line 1259, in process_update\n for handlers in self.handlers.values():\n ^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: dictionary changed size during iteration\n\nI want the buttons in that menu to be active when navigating between menus in Telegram, but sometimes ı encounter this problem when I try to add or delete handlers for the buttons.\n\n\n### Describe the solution you'd like\n\nWe need to be able to add or remove handlers while the code is running, this is a big deficiency.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/kadir5131","@type":"Person","name":"kadir5131"},"datePublished":"2025-05-25T19:25:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4803/python-telegram-bot/issues/4803"}
| 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:86735184-0292-7f3c-81e5-70f04838dabe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0D6:1E0C3E:C40BF1:FD908B:6A5C2AA9 |
| html-safe-nonce | b92e68104d1570da7852c87bc9d8454588d3c74694c4857419f487f590639ba3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEQ2OjFFMEMzRTpDNDBCRjE6RkQ5MDhCOjZBNUMyQUE5IiwidmlzaXRvcl9pZCI6IjY4MTAzMjIyMjE5MDEwMzIxMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0de090f599200ae2d8fdfd7bce132421b17c0793347bf5f5e71d79f43f68e30b |
| hovercard-subject-tag | issue:3089520062 |
| 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/4803/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb345ca8f3b7003750afd81e3723a7dc025122da7aabb80ae6ed2cfb42240b3e/python-telegram-bot/python-telegram-bot/issues/4803 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb345ca8f3b7003750afd81e3723a7dc025122da7aabb80ae6ed2cfb42240b3e/python-telegram-bot/python-telegram-bot/issues/4803 |
| og:image:alt | What kind of feature are you missing? Where do you notice a shortcoming of PTB? \Python312\Lib\site-packages\telegram\ext_application.py", line 1259, in process_update for handlers in self.handlers... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kadir5131 |
| 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