So you are saying that by using concurrent_updates(True) + CH requests will be processed in parallel, but there is a risk of the error you describe? And if the architecture is properly designed, this error can be avoided ?
Читать полностью…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)
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?
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.
i wanna make a telegram bot, but the code is always wrong, is using the Pydroid 3 app one of the reasons I fail?
Читать полностью…Hi guys! Maybe it's already a well known problem but basically I configured that my bot send me in pvt message the exceptions if they happen.
Sometimes happens that it raises this exception:
```Python
Programs/lovelace-bot/.venv/lib/python3.11/site-packages/telegram/request/_httpxrequest.py", line 292, in do_request
raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err
telegram.error.NetworkError: httpx.ReadError:
This API request is limited to the number of requests per day. The requests I use are often restricted and I also do delayed processing.
Читать полностью…Yes.
It can only be completely avoided by properly configuring your concurrency handling
That's bc the user is anonymous, yes. See telegram.MessageReactionUpdated.actor_chat ᵀᴱᴸᴱᴳᴿᴬᴹ
Читать полностью…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
Читать полностью…Well, yeah, for demostration purpouse, but in the end, user runs it, and bot talks directly to TG servers
Thats what i meant 😁
... 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
does ptb server occur any error? i meet some problem in httpx:https://pastebin.com/zZcTc4wH
Читать полностью…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?