From fcb4c6d07be6a8e212fbd022756af7a6a28a1dc8 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 30 Apr 2018 19:37:59 +0200 Subject: [PATCH] Update client.py --- pyrogram/client/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index e1a4c9a4..403f08c8 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -40,7 +40,6 @@ from threading import Event, Thread import pyrogram from pyrogram.api import functions, types from pyrogram.api.core import Object -from pyrogram.client import ChatAction from pyrogram.api.errors import ( PhoneMigrate, NetworkMigrate, PhoneNumberInvalid, PhoneNumberUnoccupied, PhoneCodeInvalid, PhoneCodeHashEmpty, @@ -52,7 +51,7 @@ from pyrogram.crypto import AES from pyrogram.session import Auth, Session from pyrogram.session.internals import MsgId from . import types as pyrogram_types -from . import utils +from . import utils, ChatAction from .dispatcher import Dispatcher from .style import Markdown, HTML from .syncer import Syncer @@ -2518,7 +2517,7 @@ class Client: Type of action to broadcast. Choose one from the :class:`ChatAction ` enumeration, depending on what the user is about to receive. - You can also provide a string (e.g. "typing"). + You can also provide a string (e.g. "typing", "upload_photo", "record_audio", ...). progress (``int``, optional): Progress of the upload process.