Giter VIP home page Giter VIP logo

myinstantsbot's People

Contributors

atilioa avatar dependabot[bot] avatar heylouiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

myinstantsbot's Issues

Some sounds are not loaded correctly

Hello,

Some sounds seems to have the incorrect format/compression and telegram can't reproduce them. Could it possible to "hide" them to avoid this kind of files?

Thank you.

imagen

Add note about "support_inline_queries"

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.

Improve the message to confirm the upload

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

Audios uploaded with metadata will always display metadata when sent

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:
nometadata
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?

Remove use of temporary file

Instead saving a temporary file with user sent file, store the whole file content in memory and pass to myinstants api.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.