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

Hey guys, just starting with my first bot so please forgive the silly question! I'm stuck right at the start. Every time I try to run the simplest scripts, it always gets stuck at the app.run_polling() or bot.infinity_polling() lines. Checked my firewall/proxies, tried in different environments, and with different tokens but to no avail. Implementing a timeout doesn't work either - still gets stuck. Is there something I'm missing?

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

>>> telegram.Bot()

Ok 👌
thanks alot 🙏

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

>>> telegram.Bot()

and its steel working ?

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

>>> telegram.Bot()

That is wrong, I have used far older file ids

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

>>> telegram.Bot()

can i always use file id in a bot ?

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

>>> telegram.Bot()

/channel/artgroup2101_bot you can also click on the bot, with test data card 1111 1111 1111 1026, 12/22, CVC 000.

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

>>> telegram.Bot()

Maybe someone knows why I successfully make a payment, but successful_payment_callback does not give any result??

here is a small piece of code

https://pastebin.com/MPmKLmkF

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

>>> telegram.Bot()

probably, it has a whole library behind it and well, scheduling stuff :D

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

>>> telegram.Bot()

telegram.ext.filters.Document.AUDIO ᵀᴱᴸᴱᴳᴿᴬᴹ
telegram.ext.filters.Document.Category
telegram.Document.mime_type ᵀᴱᴸᴱᴳᴿᴬᴹ

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

>>> telegram.Bot()

Where can see the file extensions included in the categories under telegram.ext.filters.Document ?
For example, which audio files are included in AUDIO?

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

>>> telegram.Bot()

it's a Python module, what I suggest is generally a model of data storage, no matter what middleware is involved

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

>>> telegram.Bot()

BotCommandScope
python-telegram-bot documentation for this class:
telegram.BotCommandScope

Telegram's official Bot API documentation has more info about BotCommandScope.

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

>>> telegram.Bot()

Question: do you know if it is possible to modify the list of bot commands based on whether it is a group etc...

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

>>> telegram.Bot()

I use MySQL personally as I already have a WordPress site running.

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

>>> telegram.Bot()

Might I ask the link for the docs that keeps track of messages?

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

>>> telegram.Bot()

Hey. You can find our documentation at Read the Docs.

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

>>> telegram.Bot()

The point behind me writing iirc is that I did not verify my claim

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

>>> telegram.Bot()

Iirc we have some hardcoded in our tests which are years old at this point

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

>>> telegram.Bot()

i heard that it is not working after some days

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

>>> telegram.Bot()

hello guys
i have a question
is the file_id reliable over time ?

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

>>> telegram.Bot()

I did everything according to the example from the documentation😕

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

>>> telegram.Bot()

This command is only available for admins. You are not an admin.

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

>>> telegram.Bot()

Scheduling a job uses more ram than just creating a task?

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

>>> telegram.Bot()

+filters.Document.AUDIO+ (and all other special cases of +filters.Document.Category+) are based on +Document.mime_type+, not on the file extension !search

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

>>> telegram.Bot()

Just set start and help. Explain cmds in help. Why do you have to set all cmds 🤷

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

>>> telegram.Bot()

Do note that this only affects the list of displayed commands, you still need to check the chat type inside handlers

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

>>> telegram.Bot()

Hey. You can find an explanation of @roolsbot's functionality on 'GitHub.

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

>>> telegram.Bot()

better use sqlAlchamy

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

>>> telegram.Bot()

You can use anything from PTB Persistence to an SQL database.

The idea is that you log all messages in a database and query them when you need some chat history.

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

>>> telegram.Bot()

Oh shoot, no i'm wrong. it worked after using allowed_updates.

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