Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase telethon version to avoid exceptions #15

Closed
wowkin2 opened this issue Jul 4, 2018 · 2 comments
Closed

Increase telethon version to avoid exceptions #15

wowkin2 opened this issue Jul 4, 2018 · 2 comments

Comments

@wowkin2
Copy link
Collaborator

wowkin2 commented Jul 4, 2018

Got an issue with current using version 0.18.3

Traceback (most recent call last):
  File "...\telegram_messages_dump\telegram_dumper.py", line 80, in run
    chatObj = self._getChannel()
  File "...\telegram_messages_dump\telegram_dumper.py", line 173, in _getChannel
    dialogs = self.get_dialogs(limit=None)
  File "...\venv\lib\site-packages\telethon-0.18.3-py3.6.egg\telethon\telegram_client.py", line 619, in get_dialogs
    dialogs = UserList(self.iter_dialogs(*args, **kwargs))
  File "C:\Python36\lib\collections\__init__.py", line 1039, in __init__
    self.data = list(initlist)
  File "...\venv\lib\site-packages\telethon-0.18.3-py3.6.egg\telethon\telegram_client.py", line 600, in iter_dialogs
    yield Dialog(self, d, entities, messages)
  File "...\venv\lib\site-packages\telethon-0.18.3-py3.6.egg\telethon\tl\custom\dialog.py", line 69, in __init__
    self.draft = Draft(client, dialog.peer, dialog.draft)
  File "...\venv\lib\site-packages\telethon-0.18.3-py3.6.egg\telethon\tl\custom\draft.py", line 32, in __init__
    self._text = markdown.unparse(draft.message, draft.entities)
AttributeError: 'DraftMessageEmpty' object has no attribute 'message'

It is already investigated and fixed in next releases (the latest is 1.0.3).
See discussion: LonamiWebs/Telethon#844

@wowkin2 wowkin2 changed the title Increase telethon version to avoid issues (0.18.3 -> 1.0.3) Increase telethon version to avoid exceptions Jul 4, 2018
@wowkin2
Copy link
Collaborator Author

wowkin2 commented Jul 4, 2018

Looks like bug was fixed in 0.19.1.6 (oldest that works for me, all the next are async)

@Kosat
Copy link
Owner

Kosat commented Jul 7, 2018

Ok. Thank you. I merged in your changes.

@Kosat Kosat closed this as completed Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants