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

Probably whatever library you use has a help group

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

>>> telegram.Bot()

This group is for asking technical questions when using the python-telgram-bot library

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

>>> telegram.Bot()

I gave an example on this but on any bot that does this to me or channel, tell me the right commands to put in please

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

>>> telegram.Bot()

I have this problem when I want show id bot or channels

Errore: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: invalid user_id specified

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

>>> telegram.Bot()

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

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

>>> telegram.Bot()

This is the final part of the stack trace

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

>>> telegram.Bot()

My need is to get the information of the specified chat

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

>>> telegram.Bot()

https://api.telegram.org/bot{bot_token}/getChat?chat_id={chat_id}

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

>>> telegram.Bot()

If you have a finite state machine, you have to process things in order

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

>>> telegram.Bot()

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 ?

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

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

Ah ok sorry…where do I ask to solve this problem?

I write script with python

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

>>> telegram.Bot()

I want to do in my bot that I can see the id of everything both of the channel and of the group and of the ids I write script in python

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

>>> telegram.Bot()

Example
/info @BotFather

Errore: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: invalid user_id specified

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

>>> telegram.Bot()

Hi all I want show info id in my bot example

Id info @Mr_Looker
Id bot
And

Id channels

Plz send me command for put in my script python

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

>>> telegram.Bot()

Know what. How to run less into flood wait errors?

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

>>> telegram.Bot()

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:


I think that it's sme kind of error raised for a missed comunication with telegram servers. If yes, how could I skip it if happens?

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

>>> telegram.Bot()

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.

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

>>> telegram.Bot()

Yes.
It can only be completely avoided by properly configuring your concurrency handling

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

>>> telegram.Bot()

It can not be avoided

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

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

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