Skip to content

Callable TelegramClient

Pre-release
Pre-release
Compare
Choose a tag to compare
@Lonami Lonami released this 04 Jul 09:09
Scheme layer used: 68 (changes)

There is a new preferred way to invoke requests, which you're encouraged to use:

# New!
result = client(SomeRequest())

# Old.
result = client.invoke(SomeRequest())

Existing code will continue working, since the old .invoke() has not been deprecated.

When you .create_new_connection(), it will also handle FileMigrateError's for you, so you don't need to worry about those anymore.

Bugs fixed:

  • Fixed some errors when installing Telethon via pip (for those using either source distributions or a Python version ≤ 3.5).
  • ConnectionResetError didn't flag sockets as closed, but now it does.

On a more technical side, msg_id's are now more accurate.