mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Indentation, formatting
This commit is contained in:
parent
7b7fbc0d8b
commit
417947d520
|
@ -15,7 +15,9 @@ from mimetypes import guess_type
|
||||||
|
|
||||||
from .crypto import CdnDecrypter
|
from .crypto import CdnDecrypter
|
||||||
from .tl.custom import InputSizedFile
|
from .tl.custom import InputSizedFile
|
||||||
from .tl.functions.upload import (GetFileRequest, SaveBigFilePartRequest, SaveFilePartRequest)
|
from .tl.functions.upload import (
|
||||||
|
SaveBigFilePartRequest, SaveFilePartRequest, GetFileRequest
|
||||||
|
)
|
||||||
from .tl.types.upload import FileCdnRedirect
|
from .tl.types.upload import FileCdnRedirect
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -1778,13 +1780,7 @@ class TelegramClient(TelegramBareClient):
|
||||||
event = builder.build(update)
|
event = builder.build(update)
|
||||||
if event:
|
if event:
|
||||||
event._client = self
|
event._client = self
|
||||||
try:
|
callback(event)
|
||||||
callback(event)
|
|
||||||
except StopPropagation:
|
|
||||||
__log__.info("Event handler {0} stopped propagation of updates while processing {1}.".format(
|
|
||||||
callback.__name__,
|
|
||||||
update))
|
|
||||||
break
|
|
||||||
|
|
||||||
def add_event_handler(self, callback, event):
|
def add_event_handler(self, callback, event):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user