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

https://hastebin.com/share/etihuciqix.ruby

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

>>> telegram.Bot()

Hmmm, feels like a bug in the library to me, this should be handled properly. Mind creating a mwe and I can debug further later

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

>>> telegram.Bot()

Hi, I want to trigger a command every day at a specific time
but I don't understand how
I read the https://docs.python-telegram-bot.org/en/stable/examples.timerbot.html timerbot example
but I don't understand how to check if time has passed

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

>>> telegram.Bot()

My Guess is that you have app.run_polling() they is bpocking on main and After that you have and updater.run_polling() forgotten somewhere

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

>>> telegram.Bot()

Nothing changed means you got the same error?

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

>>> telegram.Bot()

https://docs.python.org/3/library/asyncio.html

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

>>> telegram.Bot()

app.run_polling is not an async function.

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

>>> telegram.Bot()

u should await Updater.start_polling

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

>>> telegram.Bot()

Wiki of python-telegram-bot - Category Design Pattern
How do I deal with a media group?

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

>>> telegram.Bot()

This grp is related to PTB guys

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

>>> telegram.Bot()

Snack is a programming language oh

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

>>> telegram.Bot()

Use your internet to the fullest. Even though you are a child, you still know how to use your internet.


You just don't know how use it properly.

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

>>> telegram.Bot()

I don't understand i am a 16 year child

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

>>> telegram.Bot()

Help how i create bot

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

>>> telegram.Bot()

Thanks btw how can I move up level accordingly ?

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

>>> telegram.Bot()

Hey. Please provide a minimal working example (MWE). Have a look at Minimal Working Example (MWE) if you need help.

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

>>> telegram.Bot()

ext.JobQueue.run_daily
python-telegram-bot documentation for this method:
telegram.ext.JobQueue.run_daily

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

>>> telegram.Bot()

I checked. Only app.run_polling is called.

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

>>> telegram.Bot()

There is no such thing in v20

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

>>> telegram.Bot()

v20 release notes and probably some discussion about it on the repo

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

>>> telegram.Bot()

Where I can read why PTB goes to async? What's the point?

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

>>> telegram.Bot()

I'm not using Updater.start_polling. I'm using app.run_polling.

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

>>> telegram.Bot()

Hi.
I want to check the connection to my database in a post_init function, and do other actions such as creating indexes on the db as well. And if the database is not connected, I want to shutdown the program.

My current code is this:

async def post_init(app: Application) -> None:
try:
await MongoDB().create_indexes()
except Exception as e:
logger.error(msg=f"Error Creating Indexes: {e}")

logger.critical(msg="Shutting down the bot due to error in post_init.")

sys.exit(1)

await app.bot.send_message(
chat_id=DEVELOPER_CHAT_ID,
text="Bot Started Successfully.",
)


But next to shutting down, I get the error:

sys:1: RuntimeWarning: coroutine 'Updater.start_polling' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback


What should I do about this? What is the correct way to shut down the program in post_init. The wiki guides suggests using app.stop_running, but I don't think that works here, and when I tried it nothing changed.

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

>>> telegram.Bot()

hi guys! Is it possible to retrieve the media group sent to a bot? Or does it receives photos as multiple updates?

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

>>> telegram.Bot()

Really loev you ur great

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

>>> telegram.Bot()

I'm 18 now, a software engineering student in an university.

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

>>> telegram.Bot()

Its a programming language😁

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

>>> telegram.Bot()

Oh, hey! There's someone new joining our awesome community of Python developers ❤️ We have compiled a list of learning resources just for you:

• As Beginner
• As Programmer
• Official Tutorial
• Dive into Python
• Learn Python
• Computer Science Circles
• MIT OpenCourse
• Hitchhiker’s Guide to Python
• The @PythonRes Telegram Channel.
• Corey Schafer videos for beginners and in general
• Project Python

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

>>> telegram.Bot()

I'm having a hard time finding the convo, but someone had an issue with TypeHandler not handling timeouts

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

>>> telegram.Bot()

Wiki of python-telegram-bot - Category Must read
Introduction to the API

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