File exceeds limit error
Whenever im sending a file its showing the file exceeds more than 20mb. But i have snd fie of 300kb like that only... Any fix??

This is the code which checks file size: https://github.com/smcclennon/SongID/blob/b34894c7d345e2532e5c16fbb8a1f1f01f019d36/SongIDProcessor.py#L77-L90
Everything is in a very bad practice "catch all", so if the try fails for any reason, it will report the file as being too large.
You could troubleshoot the problem by figuring out what file size Telegram is reporting the file as being like so:
try:
file_info = context.bot.get_file(file_id) # Get file information from Telegram
file_size = file_info["file_size"] # Extract file size
print(f'Telegram reported file size: {file_size}') # Print file size
If nothing is printed, then it means the try definitely failed. You should then try removing the try except to see what the actual exception is.
Thanks its wokring but taking a long time to identify the song.Is there any solution for that.Any API fixing?
I tried this but sometimes showing errors.Can u fix it also api take a of time to respond
The API SongID uses for music identification is ACR Cloud. I haven't personally experienced slow response times. You could be experiencing slow download times from Telegram, slow disk I/O, or slow upload to ACRCloud.
Not wokring bro can u try its not showing any error but when a song is send to the bot it wont resond

You should set up Sentry so you receive all error reports for the bot.
The error is occurring here: https://github.com/smcclennon/SongID/blob/c15bd9107f401d84c6ab55d5e1e41a95ecdd5ddd/SongIDProcessor.py#L263 https://github.com/smcclennon/SongID/blob/c15bd9107f401d84c6ab55d5e1e41a95ecdd5ddd/ACRAPI.py#L61-L66
To enable Sentry and receive detailed error reports from the bot, simply create an account, create a Python project, and place your DSN here: https://github.com/smcclennon/SongID/blob/c15bd9107f401d84c6ab55d5e1e41a95ecdd5ddd/data/token_example.json#L27-L29
Bro i dont understand clearly. Btw if u have telegram or insta cam u give me ur username so that i can contact u there. Or pls msg me @i_am_albin_praveen this is my username.. I wanna fix this thing bro🙏🏻
It's more beneficial to discuss here so others can also understand in future.
Your error is occurring between line 62-66 because ACR: Processing request... is seen in your logs but ACR: Processing complete! is not.
https://github.com/smcclennon/SongID/blob/c15bd9107f401d84c6ab55d5e1e41a95ecdd5ddd/ACRAPI.py#L61-L66
SongID has been designed to report errors like this through Sentry, which is error reporting software. Once you sign up, you will need to create a project within Sentry, similar to how you created a project within ACRCloud. You will be provided with a "DSN". You need to place that in your tokens.json, there is a place for it:
https://github.com/smcclennon/SongID/blob/c15bd9107f401d84c6ab55d5e1e41a95ecdd5ddd/data/token_example.json#L27-L29
Once you have done this, Sentry will provide you with detailed information for all errors which occur.

Any fix??
You may have exposed your Telegram bot token in those screenshots, you should request a new token from BotFather as soon as possible.
Please paste the full stack trace for any issues occurring in ACRAPI.py as that is where I believe your main problem lies.
Idk bro what the error is
Bro can u suggest me where i can get the api
Can you confirm that you are sending messages directly to the bot, and not from a group/channel?