Merge branch 'master' into kate

kate
udf 2018-12-26 23:35:41 +02:00
commit 71288d61eb
Signed by: kate
GPG Key ID: F17AECB58C3A3096
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ async def on_snip(event):
else:
snip = snips[name]
if snip['type'] == TYPE_PHOTO:
media = types.InputPhoto(snip['id'], snip['hash'])
media = types.InputPhoto(snip['id'], snip['hash'], file_reference=b'')
elif snip['type'] == TYPE_DOCUMENT:
media = types.InputDocument(snip['id'], snip['hash'])
media = types.InputDocument(snip['id'], snip['hash'], file_reference=b'')
else:
media = None