mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix events.Album and minor docs nit, bump to v1.10.1
This commit is contained in:
parent
b4046017a7
commit
47956ddbca
|
@ -70,5 +70,5 @@ through :tl:`UploadProfilePhoto`:
|
||||||
from telethon.tl.functions.photos import UploadProfilePhotoRequest
|
from telethon.tl.functions.photos import UploadProfilePhotoRequest
|
||||||
|
|
||||||
await client(UploadProfilePhotoRequest(
|
await client(UploadProfilePhotoRequest(
|
||||||
client.upload_file('/path/to/some/file')
|
await client.upload_file('/path/to/some/file')
|
||||||
)))
|
)))
|
||||||
|
|
|
@ -27,7 +27,7 @@ class Album(EventBuilder):
|
||||||
super().__init__(chats, blacklist_chats=blacklist_chats, func=func)
|
super().__init__(chats, blacklist_chats=blacklist_chats, func=func)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build(cls, update, others=None):
|
def build(cls, update, others=None, self_id=None):
|
||||||
if not others:
|
if not others:
|
||||||
return # We only care about albums which come inside the same Updates
|
return # We only care about albums which come inside the same Updates
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.10.0'
|
__version__ = '1.10.1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user