This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
Hey. What exactly do you want this for? This seems like an xy-problem to me.
Читать полностью…Hello
How do I delete all CallbackQuery and buttons when the bot is stopped?
I mean you could, several ways. But in general one doesn't need it :D
Читать полностью…you pass a function handle, not a called function to run_repeating
Читать полностью…What exactly is going wrong? Is it trying to pass in my context into the called function of a scheduler?
Читать полностью…Hey. You can find our documentation at Read the Docs.
Читать полностью…The point behind me writing iirc is that I did not verify my claim
Читать полностью…Iirc we have some hardcoded in our tests which are years old at this point
Читать полностью…i heard that it is not working after some days
Читать полностью…hello guys
i have a question
is the file_id reliable over time ?
I did everything according to the example from the documentation😕
Читать полностью…This command is only available for admins. You are not an admin.
Читать полностью…Scheduling a job uses more ram than just creating a task?
Читать полностью…+filters.Document.AUDIO+ (and all other special cases of +filters.Document.Category+) are based on +Document.mime_type+, not on the file extension !search
Читать полностью…is here anyone send me exaample of the file like,filters.Document.MimeType('audio/mpeg')
pls send me this file example i always find this as class audio not inside document
but hey if you want to, dont let me stop you. add it to the data param and, as explained in the docs, access it via context.job.data.
Читать полностью…seems like it's not advisable to refactor out the job queue and command functions into one function then? From the documentation there doesn't seem to be a way to pass in the params
Читать полностью…Hey all, I'm trying to schedule a job using.... The job calls a function that can be called manually using a command, so I defined it with params (update, context). When I pass in update, context through the job scheduler function, I keep getting error
WARNING - Update "None" caused error "'coroutine' object is not callable"
NoneType: None
def setup_add_job(api):Читать полностью…
async def set_job(update, context):
context.job_queue.run_repeating(_check_follows(api, context, update), interval=300, first=0, chat_id=update.message.chat_id)
await update.message.reply_text('Polling every 5 minutes!')
return
return set_job
Hey guys, just starting with my first bot so please forgive the silly question! I'm stuck right at the start. Every time I try to run the simplest scripts, it always gets stuck at the app.run_polling() or bot.infinity_polling() lines. Checked my firewall/proxies, tried in different environments, and with different tokens but to no avail. Implementing a timeout doesn't work either - still gets stuck. Is there something I'm missing?
Читать полностью…That is wrong, I have used far older file ids
Читать полностью…/channel/artgroup2101_bot you can also click on the bot, with test data card 1111 1111 1111 1026, 12/22, CVC 000.
Читать полностью…Maybe someone knows why I successfully make a payment, but successful_payment_callback does not give any result??
here is a small piece of code
https://pastebin.com/MPmKLmkF
probably, it has a whole library behind it and well, scheduling stuff :D
Читать полностью…telegram.ext.filters.Document.AUDIO ᵀᴱᴸᴱᴳᴿᴬᴹ
telegram.ext.filters.Document.Category
telegram.Document.mime_type ᵀᴱᴸᴱᴳᴿᴬᴹ
Where can see the file extensions included in the categories under telegram.ext.filters.Document
?
For example, which audio files are included in AUDIO
?