10206
This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
Thanks! I'll definitely check out ptbcontrib once I modularize this a bit more.
Читать полностью…
Hi! I had this exact issue, so I built a mini-framework for my own PTB projects. It has Postgres/Redis adapters, repository pattern, and a throttling middleware. It's fully modular, so you can easily add your own middlewares or repos to it.
I keep it in a private repo. If you want access to it, hit me up in DMs.
I couldn't find any official announcements for this. Is it sth new?
Читать полностью…
Sometimes telegram is slow at replying so the pool connection get saturated, and it raises the error that the connection pool is full.
How are you dealing with that?
Oh, does not vanish at view, but after a bit of time?
Читать полностью…
No. PTB only provides an interface to build your own rate limiter and a minimal effort implementation of it, and you have to explicitly include it in your Application for it to take effect. Said minimal effort implementation does have a kwarg that allows you to specify the number of retries after getting a RetryAfter error, but even that defaults to 0 (no retries)
"In this case, the message may be delivered across multiple active client applications of the user, but is regardless not guaranteed to be delivered to any of them."
Читать полностью…
I wonder what this means: "It is not guaranteed that the ephemeral message will be received, especially if the user is offline."
Читать полностью…
No in groups where they are admins, they can just send them
Читать полностью…
Wiki of python-telegram-bot - Category Notable Features
Bot API Forward Compatiblity
We have a ptbcontrib repo if you want to contribuite to the community
Читать полностью…
apparently it was only sent to winners of a few contests, it's not public yet
Читать полностью…
Well instead of the recative one, where a user likely is still looking at that specific client, the other one needs to be send to any in the hope it reaches a user and they actually look at it before it vanishes
Читать полностью…
That they might get it, might not. Percentages aren't clear
Читать полностью…
I think if bot hit the rate limits, then PTB retry sending it ? Isn't that written in docs ? Or something else they mean here - https://github.com/python-telegram-bot/python-telegram-bot/wiki/Avoiding-flood-limits#ptbs-rate-limiting-mechanism
Читать полностью…
They say disappearing message can be risky for safety reasons
Читать полностью…
It is already supported for interactions message but not 1st hand due to privacy and safety concern 😕
Читать полностью…
We don't give out ETAs but you can use our forward API
Читать полностью…