Added telegram bot functionality to send text and audio files | used OpenAI #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
To completely include the feature in textbase itself instead of telegram.
I need permission to make changes in the UI one to allow users to send audio to the textbase-bot and then integrate the same code to generate the response based on the audio.
IMP: Create a folder audio inside the telegram folder.
Scope
Added telegram bot feature to access the open AI using text and audio formats.
Screenshots
Audio used:
audio_2023-09-03_23-52-49.zip
Code improvements
[Did you add some generic like utility, component, or anything else useful outside of this PR]
I used the whisper repo from Open AI to transcribe the audio files into text messages.
I have used Open AI and Telegram bot auth tokens to configure the app in utils/config.ini
Developer checklist