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
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
How change sendfile to url file from channel?
if there's a url just copy that instead of uploading
Yes
I can't join this chat😢
😢my connection😒👍
Обсуждают сегодня