mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add preparing thumb in send_document method (#391)
This commit is contained in:
parent
7f4f037f3e
commit
d1452b1620
1 changed files with 1 additions and 0 deletions
|
|
@ -398,6 +398,7 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
|
||||
files = {}
|
||||
prepare_file(payload, files, 'document', document)
|
||||
prepare_attachment(payload, files, 'thumb', thumb)
|
||||
|
||||
result = await self.request(api.Methods.SEND_DOCUMENT, payload, files)
|
||||
return types.Message(**result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue