forked from uniborg/uniborg
File reference
This commit is contained in:
parent
a254c113a7
commit
319eb84c5a
|
@ -22,9 +22,9 @@ async def on_snip(event):
|
||||||
else:
|
else:
|
||||||
snip = snips[name]
|
snip = snips[name]
|
||||||
if snip['type'] == TYPE_PHOTO:
|
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:
|
elif snip['type'] == TYPE_DOCUMENT:
|
||||||
media = types.InputDocument(snip['id'], snip['hash'])
|
media = types.InputDocument(snip['id'], snip['hash'], file_reference=b'')
|
||||||
else:
|
else:
|
||||||
media = None
|
media = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue