Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API #7

Open
devheniik opened this issue Sep 28, 2022 · 1 comment
Open

REST API #7

devheniik opened this issue Sep 28, 2022 · 1 comment
Labels
help wanted Extra attention is needed nice to have An issue that is not a priority for us, but for which we welcome pull requests wontfix This will not be worked on

Comments

@devheniik
Copy link

Hi!

Your project is awesome)

Can you create a branch where this app will be format to small server with one route, where I can check number
If you want try to compare with Docker

I can host this project on my server for all peoples)

@msramalho msramalho added help wanted Extra attention is needed wontfix This will not be worked on labels Apr 15, 2024
@GalenReich GalenReich added the nice to have An issue that is not a priority for us, but for which we welcome pull requests label May 29, 2024
@GGontijo
Copy link

I’m willing to work on this. @devheniik, do you still want to host this on your server?

How about creating a different branch oriented towards a FastAPI setup, running through Uvicorn, with data validation by Pydantic?

I’m not sure if telethon has any limitations regarding simultaneous access, but if it does, we could refactor the access to TelegramClient to use a Singleton pattern with a thread lock or queue system. This way, we can ensure that only one request to TelegramClient is made at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed nice to have An issue that is not a priority for us, but for which we welcome pull requests wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants