heylouiz / myinstantsbot Goto Github PK
View Code? Open in Web Editor NEWTelegram bot that search sounds in www.myinstants.com
License: MIT License
Telegram bot that search sounds in www.myinstants.com
License: MIT License
Hello. I wanted to run your bot, but inline queries didn't work. After changing the logging level to DEBUG, I found "supports_inline_queries: False" in stdout. After enabled in BotFather, everything worked.
2021-12-24 10:01:52,720 - telegram.bot - DEBUG -
{'is_bot': True, 'can_join_groups': True,
'supports_inline_queries': False, 'id': 1234567890,
'first_name': 'firstnamebot', 'can_read_all_group_messages': False,
'username': 'usernamebot'}
Could you please add a note about "support_inline_queries"(https://core.telegram.org/bots/inline) and how to change the logging level without changing code? Thanks.
Currently the message is:
Your instant name will be "Name Chosen".
Are you sure about it? Send Yes, No or /cancel
Change to this to emphasize the options:
Your instant name will be "Name Chosen".
Are you sure about it? Send "Yes", "No" or /cancel
If a user sends an audio file with metadata (track or artist, it seems) through the /upload conversation, retrieving this instant through the bot will always send an audio message with metadata.
Silly example - first instant was sent as a .mp3 file with no metadata:
This can be undesirable as some users might not want to reveal an instant's content before it is played, and also because audio files frequently got a long and random string as their track title, in which case it will always pollute the instant message. Whether or not to delete metadata could be left open as an option to the user during the /upload conversation, being enabled by default.
Deleting metadata prior to actual upload is probably easily achieved through a library as https://pypi.org/project/mutagen/.
Thoughts?
See: conversation_timeout
Instead saving a temporary file with user sent file, store the whole file content in memory and pass to myinstants api.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.