Skip to content

get_chat_history using takeout session locks the script #48

@jordyamc

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

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