Comments (9)
What are you calling "API keys"?
from telegram-bot-api.
What are you calling "API keys"?
Sorry for confusing, I mean Telegram bot API token
from telegram-bot-api.
@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, 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.
@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 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.
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.
@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 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)
- [Question]: Is `ChatJoinRequest.invite_link` always null for public groups? HOT 1
- How legal is using getChannelDifference for public channels HOT 5
- hajaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar
- Does telegram-bot-api still not support uploading files up to 4G? HOT 7
- How to create a service on Ubuntu HOT 1
- Tgram.api
- http proxy does not work! HOT 1
- Message entities are not preserved by `editMessageText` and `editMessageMedia` HOT 2
- Request: Add Possibility for bot to publish/maintain stories in Channels
- NOT: User.language_code described at IETF but only being used as ISO-639? HOT 3
- How should I apply for the API HOT 4
- How can I be sure that Telegram BOT API local server is running properly? HOT 4
- Blockquote HTML syntax issues HOT 1
- pending_update_counts delay HOT 15
- get 404 error on download file! HOT 11
- Bot latency HOT 6
- Failed to forward message: 'Bad Request: message thread not found' HOT 7
- Persistent "ERROR" When Creating Telegram Application HOT 6
- Change the maximum upload size HOT 1
- not able to set more webhooks! HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-bot-api.