pythontelegrambotgroup | Unsorted

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

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

Subscribe to a channel

>>> telegram.Bot()

That's bc the user is anonymous, yes. See telegram.MessageReactionUpdated.actor_chat ᵀᴱᴸᴱᴳᴿᴬᴹ

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

>>> telegram.Bot()

Asked user to react, I get reactions from reacting to comments, but not from reacting to channel post unfortunately. Cannot find the info why this doesn't work on the documentation

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

>>> telegram.Bot()

Have a look at the discussion at /channel/pythontelegrambotgroup/723183

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

>>> telegram.Bot()

Well, yeah, for demostration purpouse, but in the end, user runs it, and bot talks directly to TG servers
Thats what i meant 😁

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

>>> telegram.Bot()

... You can not build a state handler and throw updates at it in a random order.

Or I mean you can it just won't really work hmm

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

>>> telegram.Bot()

Wiki of python-telegram-bot - Category Networking
Handling network errors

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

>>> telegram.Bot()

PTB doesn't have servers you connect to, you connect to telegrams servers

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

>>> telegram.Bot()

does ptb server occur any error? i meet some problem in httpx:https://pastebin.com/zZcTc4wH

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

>>> telegram.Bot()

Hello everyone
Are there any other ways to maintain states in a Telegram bot other than ConversationHandler? If not, what are the best technologies to use to create your own state machine?

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

>>> telegram.Bot()

got it. im just trying to know ptb deeply. thank u 🙏🏻

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

>>> 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()

Because it's anonymous?

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

>>> telegram.Bot()

Update(message_reaction=MessageReactionUpdated(actor_chat=Chat(id=-1002056062506, title='Comments from ЭксплоPeek', type=<ChatType.SUPERGROUP>), chat=Chat(id=-1002056062506, title='Comments
from ЭксплоPeek', type=<ChatType.SUPERGROUP>), date=datetime.datetime(2024, 3, 2, 12, 27, 2, tzinfo=<UTC>), message_id=2203, new_reaction=(ReactionTypeEmoji(emoji='\U0001fae1', type=<React
ionType.EMOJI>),)), update_id=718625152)


is it not possible to discern who put a reaction to message in a group? Or this message means it's the chat itself who put the reaction?

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

>>> telegram.Bot()

I'm not quite sure what you mean by that. Each user's state will be tracked in the bot, and depending on it, the received update will be processed by the required function. This is basically what ConversationHandler does, but my intention was to increase the speed of the bot so that requests are processed in parallel.
Could you please correct me where I am wrong?

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

>>> telegram.Bot()

oh yeah ,but that problem was caused by what?

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

>>> telegram.Bot()

Not entirely true we do host a colour picker web app

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

>>> telegram.Bot()

There is no ptb server
There is Telegram server and your bot

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

>>> telegram.Bot()

ConversationHandler heavily relies on incoming updates being processed one by one. When using this handler, telegram.ext.ApplicationBuilder.concurrent_updates should be set to False.

Users mostly work with inline buttons in my bot and the fact above slows down my bot.

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

>>> telegram.Bot()

Honest question: why?

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

>>> telegram.Bot()

i wanna make a telegram bot, but the code is always wrong, is using the Pydroid 3 app one of the reasons I fail?

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

>>> 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?

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