-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for audio file uploading #137
Comments
I will work on this |
@Tjzabel @nlMeminger I think this needs some planning first. The issue we had previously for the Telegram API is that it exposes the bot API key. So I am guessing we need to use a third-party service to upload audio files like we do with Imgur for images. Alternatively, we could also build in support for using local file storage for hosting, but that goes beyond the scope of audio files alone since we need to configure a mechanism to store images and also make them available publicly on the Internet. My preference for this is to either find a third-party service we can use for hosting audio files or close this as a |
My thought was that we would treat audio files like normal documents, and model the audioHandler after the documentHandler. Do you have any thoughts on this approach? I think this would be simpler instead of looking for a third party to host the files like imgur |
I see. I assumed Telegram treated any file other than images as a document. If the If we discover a third-party service in the future or some other way to host files, we can always update the class then. 👍 |
@jwflory Yep, this issue is covering audio files, and needs a Documents, in terms of Telegram, only consist of general files. The other file types that are available include are:
This still brings into question the API key aspect, but we had a question or two about audio files specifically in our Telegram chat, so I figured we may as well include that as another supported file type. |
Currently, we only support some types of files. If a user wishes to upload an audio file for example, we get
[TG Debug] Ignoring non-text message
.We should look into other file types and try to support the uploading of these.
The text was updated successfully, but these errors were encountered: