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
And it wasn't CBAnswer + edit per button press? Just edit?
Читать полностью…
is it possible to use premium emoji in inline button
Читать полностью…
The common assumption is that 1to1 answers are not rate limited.
Читать полностью…
Poolitzer answered to you in terms of (api) requests not messages.
Читать полностью…
Not to be difficult, but I think you mean seldom or rarely 😅
Читать полностью…
Hey. This text reads like an AI/LLM was used to generate this. We found their answers to be unfitting for this group. We are all about providing fine tuned help for technical questions. These generated texts are often long winded, very explanatory answers for steps which didn't need explaining, and then happen to miss the actual underlying question completely or are outright false in the worst case.
Please refrain from this in the future. If you can answer a question yourself, we are glad to see a precise, technical answer. If you can not answer a question, it's better to just not reply instead of copy-pasting an autogenerated answer 😉.
But it's a group message, and it's useful for everyone
Читать полностью…
query.answer(text, show_alert = True)
Does it bring any flooding issue? For example, if someone clicks on the button 1000 times in a minute, what happens? Who's getting restricted? The bot or the user?
And Threaded Mode can only be found when when the App.
Читать полностью…
"This" in the message you're replying to means the python-telegram-bot library, which *can't* be used for userbots
Читать полностью…
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 once had a bot in a group that showed a google map streetview and had inline buttons to "walk", for each press the image was edited - in a group it would be rate limited 99% of the time because people press buttons!
Читать полностью…
This is not officially documented tho hence "assumption"
Читать полностью…
It doesn't reply with a message in the chat. Its only purpose is to show a pop-up message when you press the keyboard.
In case someone spams (e.g. pressing the button 1000+ times), who gets limited? The bot or the user? Are you sure that show_alert messages have limits?
Solely is used for things like... a bot owner is solely responsible for their bot not spamming
Читать полностью…
In general, if you respond to updates with one request you are solely rate limited
Читать полностью…
Oh then, depends on your use case, if possible use button with url so you don't get in these issues
Читать полностью…
A good idea is to delete the button after user clicks
Читать полностью…
Thanks so much, thats what worked. Threaded Mode can only be activated in https://web.telegram.org/a/#93372553 with Bot Father. Now drafts are being sent.
Читать полностью…
My fault for not redirecting to the off-topic group sooner tbh
Читать полностью…
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