Await bot.send_document(

chat_id = message.chat.id,
document = sendfile,
thumb = Config.PDF_THUMBNAIL,
caption = f"text"
)
Please how make this sending file from telegram change?
And all thembnail pic?
Pyrogram

10 ответов

40 просмотров

look at this example. shouldn't be hard to modify the url string and modify the function for documents https://github.com/codebam/moonitor/blob/master/src/worker.js#L309

https://docs.pyrogram.org/api/methods/send_document?highlight=send_document#pyrogram.Client.send_document

https://t.me/pyrogramchat

sendfile should be BinaryIO you don't need thumb it should auto generate it

Похожие вопросы

Карта сайта