Update client.py

This commit is contained in:
Dan 2018-04-30 19:37:59 +02:00 committed by GitHub
parent 9b9c7ced77
commit fcb4c6d07b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,6 @@ from threading import Event, Thread
import pyrogram import pyrogram
from pyrogram.api import functions, types from pyrogram.api import functions, types
from pyrogram.api.core import Object from pyrogram.api.core import Object
from pyrogram.client import ChatAction
from pyrogram.api.errors import ( from pyrogram.api.errors import (
PhoneMigrate, NetworkMigrate, PhoneNumberInvalid, PhoneMigrate, NetworkMigrate, PhoneNumberInvalid,
PhoneNumberUnoccupied, PhoneCodeInvalid, PhoneCodeHashEmpty, PhoneNumberUnoccupied, PhoneCodeInvalid, PhoneCodeHashEmpty,
@ -52,7 +51,7 @@ from pyrogram.crypto import AES
from pyrogram.session import Auth, Session from pyrogram.session import Auth, Session
from pyrogram.session.internals import MsgId from pyrogram.session.internals import MsgId
from . import types as pyrogram_types from . import types as pyrogram_types
from . import utils from . import utils, ChatAction
from .dispatcher import Dispatcher from .dispatcher import Dispatcher
from .style import Markdown, HTML from .style import Markdown, HTML
from .syncer import Syncer from .syncer import Syncer
@ -2518,7 +2517,7 @@ class Client:
Type of action to broadcast. Type of action to broadcast.
Choose one from the :class:`ChatAction <pyrogram.ChatAction>` enumeration, Choose one from the :class:`ChatAction <pyrogram.ChatAction>` enumeration,
depending on what the user is about to receive. 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 (``int``, optional):
Progress of the upload process. Progress of the upload process.