pythontelegrambotgroup | Unsorted

Telegram-канал pythontelegrambotgroup - >>> telegram.Bot()

7508

This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org

Subscribe to a channel

>>> telegram.Bot()

No it says which you shouldn't call. Eg load_persistence_cache

You just probably don't need to call them

Читать полностью…

>>> telegram.Bot()

all the methods of telegram.ext.CallbackDataCache are intended to be used not from user? cause usually it's stated, but in the class doc page there's nothing about this

Читать полностью…

>>> telegram.Bot()

when using MessageHandler(filters.ATTACHMENT & (~filters.FORWARDED), upload_file), if the user sends a media group i do get two updates, but both of them have the same attachment, any idea what can be causing this ?

Читать полностью…

>>> telegram.Bot()

but with job_queue it does

Читать полностью…

>>> telegram.Bot()

what happens to the bot in case of an internet connection loss? does it try to reconnect and will work again after the connection is reestablished or needs to be restarted?

Читать полностью…

>>> telegram.Bot()

What's blocking you from sending a message from the callback function?

Читать полностью…

>>> telegram.Bot()

errorhandlerbot.py

Читать полностью…

>>> telegram.Bot()

Examples directory of python-telegram-bot:
errorhandlerbot.py

Читать полностью…

>>> telegram.Bot()

Uhm. You don't need to use tasks or job queues for that though

Читать полностью…

>>> telegram.Bot()

English only here, and these groups are not for job offers, use different ones or websites

Читать полностью…

>>> telegram.Bot()

what's the difference between these 2?

Читать полностью…

>>> telegram.Bot()

Thanks, I needed the ptb error handling to send me a DM on errors, which was tricky with running an asyncio.create_task

Читать полностью…

>>> telegram.Bot()

The callbacks you pass must be function names, not None :)

Читать полностью…

>>> telegram.Bot()

hello everyone. i would like to make a bot for the store on my own. and im looking for a tutor who would teach me, and with his help i would do it. i will be glad to receive feedback from russia or belarus, because i will be able to pay. thanks to the community!

всем привет. хотелось бы самостоятельно сделать бот для магазина. и я ищу репетитора, который бы научил меня, и с его помощью бы его сделала. буду рада отзывам из россии или белоруссии, потому что смогу платить. спасибо сообществу!

Читать полностью…

>>> telegram.Bot()

Nothing extra needed

Читать полностью…

>>> telegram.Bot()

Probably because the media group consists of the same media

Читать полностью…

>>> telegram.Bot()

when using update.effective_message.effective_attachment, and i don't mind if i don't group them.

Читать полностью…

>>> telegram.Bot()

Hey. You seem to be using the new version (>=20.0) of python-telegram-bot but your code is written for an older and deprecated version (<=13.15).
Please update your code to the new v20 by reading the release notes and the transition guide linked below.
You can also install a version of PTB that is compatible with your code base, but please note that the library has undergone significant changes in v20 and the older version is not supported anymore. It may contain bugs that will not be fixed by the PTB team and it also doesn't support new functions added by newer Bot API releases.

Читать полностью…

>>> telegram.Bot()

if I had a function that was running in background not attached to any bot events, it wouldn't be handled

Читать полностью…

>>> telegram.Bot()

However it was only handling errors on functions which were run when a command is used or some other bot even

Читать полностью…

>>> telegram.Bot()

Yes I was using the error handler

Читать полностью…

>>> telegram.Bot()

PTB provides an +error_handler+ that you can use to send message if you want !search

Читать полностью…

>>> telegram.Bot()

huh? then what do I use?

Читать полностью…

>>> telegram.Bot()

Will it run? Won't it run? Who knows

Читать полностью…

>>> telegram.Bot()

One exists, the second one is a joke, sorry! - Use the first one!

Читать полностью…

>>> telegram.Bot()

That's why we have job_queue.run_repeating_perhaps()

Читать полностью…

>>> telegram.Bot()

Jup. Randomly stopping it would be a funny idea

Читать полностью…

>>> telegram.Bot()

Just confirming, job_queue.run_repeating runs it indefinitely?

Читать полностью…

>>> telegram.Bot()

using https://github.com/python-telegram-bot/python-telegram-bot/wiki/Extensions---JobQueue?

Читать полностью…

>>> telegram.Bot()

https://github.com/python-telegram-bot/python-telegram-bot/network/dependents?dependents

Читать полностью…
Subscribe to a channel