pythontelegrambotgroup | Unsorted

Telegram-канал pythontelegrambotgroup - >>> telegram.Bot()

7508

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

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

I'm newbie in this bot can anyone suggest me the link from where to start for version 20 or latest ?

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

>>> telegram.Bot()

Doesn't matter where bot is from :)

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

>>> telegram.Bot()

i checked many times but i didn't find the bot.send_message() as found in the faq

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

>>> telegram.Bot()

From a different bot?

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

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

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

>>> telegram.Bot()

ok thank you @Poolitzer i try to study more deeply this command

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

>>> telegram.Bot()

i only find context.bot.send_message()

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

>>> telegram.Bot()

Then the faq entry will work you are doing something wrong, double check your code

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

>>> telegram.Bot()

or how can find a bot message id?

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