Giter VIP home page Giter VIP logo

Comments (9)

levlam avatar levlam commented on June 19, 2024

What are you calling "API keys"?

from telegram-bot-api.

JulyIghor avatar JulyIghor commented on June 19, 2024

What are you calling "API keys"?

Sorry for confusing, I mean Telegram bot API token

from telegram-bot-api.

kolayne avatar kolayne commented on June 19, 2024

@JulyIghor, in easier words, you are suggesting to create a Telegram bot API (for a certain bot) and asking, won't it interfere with the work of Telegram bots API? If I understand you correctly, I'm pretty sure you don't want to use this project for that. You can consider this project a proxy between your bot and Telegram servers (you can find many more details about what local bot API is and what it can be used for in #1). So it seems to be technically possible to do what you want (at least I don't see anything preventing you from doing this), but why not make it a part of a bot itself? If you want to make your bot of many pieces which should be seen by Telegram as one bot with one token, just implement such one bot and give it one token

from telegram-bot-api.

JulyIghor avatar JulyIghor commented on June 19, 2024

@JulyIghor, in easier words, you are suggesting to create a Telegram bot API (for a certain bot) and asking, won't it interfere with the work of Telegram bots API? If I understand you correctly, I'm pretty sure you don't want to use this project for that. You can consider this project a proxy between your bot and Telegram servers (you can find many more details about what local bot API is and what it can be used for in #1). So it seems to be technically possible to do what you want (at least I don't see anything preventing you from doing this), but why not make it a part of a bot itself? If you want to make your bot of many pieces which should be seen by Telegram as one bot with one token, just implement such one bot and give it one token

I wish to automate creating new API tokens for new bots without t.me/BotFather and store them in own DB.
Each of my bots doing different job for different channels, but using the same @ bot name.
And I wish all my bot services to not have access to a API tokens used by other bots and restrict them by allowed rights.

Yes, of course I can do own service to handle all of that, but since this project is a proxy, it would be great to have possibility of creating some proxy filter rules with a custom local API tokens database.

from telegram-bot-api.

kolayne avatar kolayne commented on June 19, 2024

@JulyIghor sounds better with a more detailed explanation but seems to be a very specific problem... I don't think it will ever be available out of the box

from telegram-bot-api.

JulyIghor avatar JulyIghor commented on June 19, 2024

@JulyIghor sounds better with a more detailed explanation but seems to be a very specific problem... I don't think it will ever be available out of the box

It is more a feature request than a problem. And it would make some bot servers more secure.
It could work similar to a local BotFather per stored API tokens to create new local API tokens.
For now I see the only usage of current release to break 50Mb file upload limit and I think we need more features here.

from telegram-bot-api.

RememberTheAir avatar RememberTheAir commented on June 19, 2024

I think we need more features here

I think the main scope of this project is not to push people to use their own self-hosted instance by providing a more feature-rich alternative to the telegram-hosted bot api, rather it's to give an alternative/solution to people who need to overcome certain limits or to those who require a custom implementation, for some reasons. Something you can work on to fit your needs. I don't think this project was ever meant to compete with api.telegram.org - also considering Telegram's API is running on this same exact code - so I don't know how the maintainer feels about this, but I feel like deriving too much from what is the set of features offered by the official bot api is a bit out of the scope. Just my two cents. Anyone can still fork this project and add an additional bearer auth-like authentication

from telegram-bot-api.

levlam avatar levlam commented on June 19, 2024

@JulyIghor You can do that if you fork the project and add this funtionality. It doesn't sound hard to implement, but it is out of the scope of this repository.

from telegram-bot-api.

JulyIghor avatar JulyIghor commented on June 19, 2024

@JulyIghor You can do that if you fork the project and add this funtionality. It doesn't sound hard to implement, but it is out of the scope of this repository.

ok, thanks for the info

from telegram-bot-api.

Related Issues (20)

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.