11054
This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
why my bot ain't responding to any message after flood error
Читать полностью…
Anyone in touch of any bank manager or bank manager himself?
Please message me
Hi 『 ████ 』 Please post code or tracebacks using a pastebin rather than via plain text or a picture. https://pastebin.com/ is quite popular, but there are many alternatives out there. Of course, for very short snippets, text is fine. Please at least format it as monospace in that case., we like to keep our groups readable and thus require long code to be in a pastebin.
⚠️ The code snippet(s) in your message have been moved to https://pastebin.poolitzer.eu/p/wCigXg.py. Your original message will be deleted in a minute, please reply to this message with your query.
ext.JobQueue.scheduler
python-telegram-bot documentation for this attribute:
telegram.ext.JobQueue.scheduler
or anything in general, I wanted to add a feature to my telegram bot where I can get the bot to send a message at midnight everyday or 10pm everyday, etc.
Читать полностью…
Then a simple solution would be to use job scheduler to send a message every 1s, if you are broadcasting.
Читать полностью…
With Bot API 7.1 (PTB v27.1), Telegram introduced the parameter allow_paid_broadcast. This allows bots to send up to 1000 messages per second by paying a fee in Telegram Stars.
Читать полностью…
yes i did but i failed to understand what does it say
Читать полностью…
telegram.error.RetryAfter: Flood control exceeded. Retry in 10 seconds
Читать полностью…
That is a question to Telegram, not to PTB 🙃
Читать полностью…
I'm running a Telegram local bot API server on my VPS, and I know that files downloaded by the bots are cached on disk.
But why are those files deleted after just a few hours? They should at least stay on disk for a day so the bot can use the cached files.
Or Telegram should provide us with an option, like a flag, to run the server and specify how long we want to keep the cached files on the disk.
Do you guys have any solution to this problem? I want to maintain at least 24 hours of cache, or if more is possible, like a week, please tell me the solution.
Hi everyone. I'd like to clarify: I know that there's read_file_handle inside InputFile, but is it possible to use InputFile inside InputMedia*? I tried doing it like this: https://pastebin.com/wx0Lt0kv
But that didn't work, I got BadRequest: Can't parse inputmedia: media not found. I can provide minimal working example of what I tried, if needed.
Ultimately, I wanted to find out: is there a way to stream files inside MediaGroup from disk without loading them completely in memory?
I think PTB comes with some for APScheduler or so
Читать полностью…
I want to ask if the same group can send 1000/s
Читать полностью…
Do you recommend any libraries for job schedulers?
Читать полностью…
First you should find out if you are doing anything like a continuous broadcasting of messages.
Did you observe any patterns when this error comes?
Wiki of python-telegram-bot - Category Notable Features
Avoiding flood limits
I moved this discussion to the off-topic group.
Читать полностью…
Then it shouldn't delete them at all from my understanding
Читать полностью…
Cant you just run it in local mode for that?
Читать полностью…
And it's TON if you're doing crypto services, but if you're selling digital goods like casinos, etc., and other digital products, you should use Stars to avoid your bot being deleted.
Читать полностью…