-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【提议】支持文件的上传和读取 #60
Comments
抄抄 alc 吧( |
节选自官方文档(点击展开)InputFileThis object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser. Sending filesThere are three ways to send files (photos, stickers, audio, media, etc.): If the file is already stored somewhere on the Telegram servers, you don't need to reupload it: each file object has a file_id field, simply pass this file_id as a parameter instead of uploading. There are no limits for files sent this way. Sending by file_idIt is not possible to change the file type when resending by file_id. I.e. a video can't be sent as a photo, a photo can't be sent as a document, etc. Sending by URLWhen sending by URL the target file must have the correct MIME type (e.g., audio/mpeg for sendAudio, etc.). |
kook的发送文件,我直接贴适配器接口好了( |
文件的上传和下载,也是通讯中很普遍的功能,希望可以实现这个功能辣
The text was updated successfully, but these errors were encountered: