2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 00:35:10 +00:00

Merge branch 'develop' into asyncio-dev

This commit is contained in:
Dan
2020-07-06 16:07:19 +02:00
3 changed files with 6 additions and 6 deletions

View File

@@ -1787,8 +1787,8 @@ class Client(Methods, BaseClient):
if file_size == 0:
raise ValueError("File size equals to 0 B")
if file_size > 1500 * 1024 * 1024:
raise ValueError("Telegram doesn't support uploading files bigger than 1500 MiB")
if file_size > 2000 * 1024 * 1024:
raise ValueError("Telegram doesn't support uploading files bigger than 2000 MiB")
file_total_parts = int(math.ceil(file_size / part_size))
is_big = file_size > 10 * 1024 * 1024

View File

@@ -252,7 +252,7 @@ class Chat(Object):
if full_chat.id == c.id:
chat = c
if isinstance(chat_full, types.ChannelFull):
if isinstance(full_chat, types.ChannelFull):
if full_chat.linked_chat_id == c.id:
linked_chat = c