mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Start using the new Sender and Chat Getter interface
This commit is contained in:
@@ -371,7 +371,7 @@ class InteractiveTelegramClient(TelegramClient):
|
||||
# with events. Since they are methods, you know they may make an API
|
||||
# call, which can be expensive.
|
||||
chat = await event.get_chat()
|
||||
if event.is_group:
|
||||
if chat.is_group:
|
||||
if event.out:
|
||||
sprint('>> sent "{}" to chat {}'.format(
|
||||
event.text, get_display_name(chat)
|
||||
|
Reference in New Issue
Block a user