Title: get_chat_history using takeout session locks the script · Issue #48 · hydrogram/hydrogram · GitHub
Open Graph Title: get_chat_history using takeout session locks the script · Issue #48 · hydrogram/hydrogram
X Title: get_chat_history using takeout session locks the script · Issue #48 · hydrogram/hydrogram
Description: Checklist I am sure the error is coming from Hydrogram's code and not elsewhere I have searched in the issue tracker for similar bug reports, including closed ones I ran pip3 install -U https://github.com/hydrogram/hydrogram/archive/dev....
Open Graph Description: Checklist I am sure the error is coming from Hydrogram's code and not elsewhere I have searched in the issue tracker for similar bug reports, including closed ones I ran pip3 install -U https://git...
X Description: Checklist I am sure the error is coming from Hydrogram's code and not elsewhere I have searched in the issue tracker for similar bug reports, including closed ones I ran pip3 install -U https:/...
Opengraph URL: https://github.com/hydrogram/hydrogram/issues/48
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_chat_history using takeout session locks the script","articleBody":"### Checklist\n\n- [X] I am sure the error is coming from Hydrogram's code and not elsewhere\n- [X] I have searched in the issue tracker for similar bug reports, including closed ones\n- [X] I ran `pip3 install -U https://github.com/hydrogram/hydrogram/archive/dev.zip` and reproduced the issue using the latest development version\n\n### Description\n\nWhen using get_chat_history using a takeout session it keeps locked, no response, no error, using the same function with a normal session works correctly\n\n### Steps to reproduce\n\n1. Create client as user\r\n2. Set session as takeout\r\n3. Invoke get_chat_history in any chat\n\n### Code example\n\n```python\nfrom hydrogram import Client\r\n\r\nwith Client(session_name, api_id, api_hash, takeout=True) as app:\r\n for message in app.get_chat_history(chat_id): # Script doesn't pass from here, no response\r\n print(message.id)\n```\n\n\n### Logs\n\n_No response_","author":{"url":"https://github.com/jordyamc","@type":"Person","name":"jordyamc"},"datePublished":"2024-07-26T19:42:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/48/hydrogram/issues/48"}
| 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:ab7e9cd2-9484-d862-70fb-e49e1ba55b74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C61E:1EF577:5B615CC:7BFFD1A:697379D2 |
| html-safe-nonce | 40b7828691f43fe658766cfc15d98f88792898be74a8aff20ce0a7f87c7c2c06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjFFOjFFRjU3Nzo1QjYxNUNDOjdCRkZEMUE6Njk3Mzc5RDIiLCJ2aXNpdG9yX2lkIjoiMzkzMjgyODkwMTA0OTU5NjM3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4adfb9f14f1ce4bebe4416df0e6c42765b17cd1a440d22f785fd84d5fda97441 |
| hovercard-subject-tag | issue:2432865432 |
| 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/hydrogram/hydrogram/48/issue_layout |
| twitter:image | https://opengraph.githubassets.com/524e87ba1dcfff600d0ff099cc6e6c0db190c6621b618d55cfac12b50508aaf6/hydrogram/hydrogram/issues/48 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/524e87ba1dcfff600d0ff099cc6e6c0db190c6621b618d55cfac12b50508aaf6/hydrogram/hydrogram/issues/48 |
| og:image:alt | Checklist I am sure the error is coming from Hydrogram's code and not elsewhere I have searched in the issue tracker for similar bug reports, including closed ones I ran pip3 install -U https://git... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jordyamc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-preview |
| go-import | github.com/hydrogram/hydrogram git https://github.com/hydrogram/hydrogram.git |
| octolytics-dimension-user_id | 153278131 |
| octolytics-dimension-user_login | hydrogram |
| octolytics-dimension-repository_id | 711555265 |
| octolytics-dimension-repository_nwo | hydrogram/hydrogram |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 711555265 |
| octolytics-dimension-repository_network_root_nwo | hydrogram/hydrogram |
| 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 | fe8be790582ef7a55477ce1918ac0ed16b106d31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width