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

did anyone get it working with PTB? I tried to send a custom emoji as an entity and as an inline emoji-sticker but in both cases i get regular emoji this is the code and i will send the bot replies:

text = "🎁Hello, world"
entities = [
MessageEntity(offset=0, length=2, type=MessageEntity.CUSTOM_EMOJI, custom_emoji_id='5796297917752941521'),
MessageEntity(offset=4, length=5, type=MessageEntity.STRIKETHROUGH),
MessageEntity(offset=7, length=5, type=MessageEntity.ITALIC),
]
entities = MessageEntity.adjust_message_entities_to_utf_16(text, entities)

await context.bot.send_message(chat_id=443854092,text=text,entities=entities)
text = 'hello world ![🎁](tg://emoji?id=5393215292857946109) [👹](tg://emoji?id=5796297917752941521) [😄](tg://emoji?id=5366316836101038579)'
await context.bot.send_message(chat_id=443854092,text=text,parse_mode= 'Markdown')

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

>>> telegram.Bot()

Hey everyone.

Can bots use custom emojis in group chats like this one, or is their use limited to DMs with the bot only?

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

>>> telegram.Bot()

Hello everyone, has anyone had a problem with telegram not sending auth code to user even though their client returns the hashCode in gRPC response?

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

>>> telegram.Bot()

Oh my god that explains many strange things

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

>>> telegram.Bot()

Vsem privet, a pochemu na latinice vse obshayutsya?

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

>>> telegram.Bot()

Error code 0x01 meaning for telegram bot

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

>>> telegram.Bot()

What I'm trying to say is I don't see where you got that "should be free". We are talking telegram here, I'd say it's amazing there's any rate limit exemption

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

>>> telegram.Bot()

Get ratelimited at 30 CBAnswer per second spread across ever increasing number of your bot users

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

>>> telegram.Bot()

And it wasn't CBAnswer + edit per button press? Just edit?

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

>>> telegram.Bot()

is it possible to use premium emoji in inline button

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

>>> telegram.Bot()

The common assumption is that 1to1 answers are not rate limited.

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

>>> telegram.Bot()

Poolitzer answered to you in terms of (api) requests not messages.

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

>>> telegram.Bot()

The bot should check if it's spamming

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

>>> telegram.Bot()

Not to be difficult, but I think you mean seldom or rarely 😅

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

>>> telegram.Bot()

Hey. This text reads like an AI/LLM was used to generate this. We found their answers to be unfitting for this group. We are all about providing fine tuned help for technical questions. These generated texts are often long winded, very explanatory answers for steps which didn't need explaining, and then happen to miss the actual underlying question completely or are outright false in the worst case.

Please refrain from this in the future. If you can answer a question yourself, we are glad to see a precise, technical answer. If you can not answer a question, it's better to just not reply instead of copy-pasting an autogenerated answer 😉.

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

>>> telegram.Bot()

no it works in groups

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

>>> telegram.Bot()

I moved this discussion to the off-topic group.

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

>>> telegram.Bot()

Hey. Please show the full traceback via a pastebin. Make sure to include everything from the first Traceback (most recent call last): until the last error message. https://pastebin.com/ is a popular pastebin service, but there are many alternatives out there.

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

>>> telegram.Bot()

This group is English only

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

>>> telegram.Bot()

Doesn't look like something produced by PTB

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

>>> telegram.Bot()

What does error code 0x01 mean in telegram bot

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

>>> telegram.Bot()

It's part of that 1to1 assumption. The answer is "free" anything extra is limited.

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

>>> telegram.Bot()

I mean, the CBA answer should be 'free' (without a message) because it makes the spinny things go away in the clients - probably was both

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

>>> telegram.Bot()

I once had a bot in a group that showed a google map streetview and had inline buttons to "walk", for each press the image was edited - in a group it would be rate limited 99% of the time because people press buttons!

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

>>> telegram.Bot()

This is not officially documented tho hence "assumption"

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

>>> telegram.Bot()

How many requests like that are allowed?

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

>>> telegram.Bot()

It doesn't reply with a message in the chat. Its only purpose is to show a pop-up message when you press the keyboard.
In case someone spams (e.g. pressing the button 1000+ times), who gets limited? The bot or the user? Are you sure that show_alert messages have limits?

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

>>> telegram.Bot()

Solely is used for things like... a bot owner is solely responsible for their bot not spamming

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

>>> telegram.Bot()

In general, if you respond to updates with one request you are solely rate limited

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

>>> telegram.Bot()

Oh then, depends on your use case, if possible use button with url so you don't get in these issues

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