Visitar URL original
get_chat_history using takeout session locks the script · Issue #48 · hydrogram/hydrogram · GitHub
Skip to content

get_chat_history using takeout session locks the script #48

Open

Description

@jordyamc

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.zip and reproduced the issue using the latest development version

Description

When 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

Steps to reproduce

  1. Create client as user
  2. Set session as takeout
  3. Invoke get_chat_history in any chat

Code example

from hydrogram import Client

with Client(session_name, api_id, api_hash, takeout=True) as app:
    for message in app.get_chat_history(chat_id): # Script doesn't pass from here, no response
        print(message.id)

Logs

No response

Activity

  1. added a commit that references this issue on Nov 4, 2024
    2a56807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions