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
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
Hey. In order for someone to be able to help you, you must ask a good technical question. Please read this short article and try again ;)
Читать полностью…
Hello everyone! Please give me a link to the official bot
Читать полностью…
Hello everyone
I have a multi-bot platform built with Python (aiogram 3.x). There is a parent bot that manages multiple child bots — users connect their bots to the platform by submitting a token.
Problem 1: When a user submits a new token, the child bot gets saved to the database but does not start polling — it never becomes active until the server is manually restarted.
Problem 2: When the server restarts, all child bots that were previously saved in the database do not start polling either — only the parent bot starts properly.
The architecture is:
One parent bot (dp dispatcher) handles user interactions
Multiple child bots share a single bola_dp dispatcher with userbots_router
Child bots are stored in active_bots: dict[int, asyncio.Task] and active_bot_objects: dict[int, Bot]
Each child bot is launched via asyncio.create_task(bola_dp.start_polling(bot, handle_signals=False))
What I've tried:
Added handle_signals=False to start_polling
Tried creating a separate Dispatcher per child bot — but aiogram throws Router is already attached error
The terminal shows "✅ Bot started" for all child bots, but only the first child bot actually gets a polling log — the rest are silently ignored
Looking for the correct way to run multiple bots on a single dispatcher in aiogram 3.x, or an alternative architecture that works.
I wanna create a telegram bot with phdroiad 3 in my phone it's working that bot thing that I wanted it wasn't it what should I do
Читать полностью…
Just try it out.
Not sure what it is or how exactly it works, but just try to install it and find out if it works.
https://github.com/python-telegram-bot/python-telegram-bot/wiki/Bot-API-Forward-Compatibility
Читать полностью…
we are forward compatible, so you should be able to use all features of api 10.0 right now.
+bot api Forward compatibility+ !search
Wiki of python-telegram-bot - Category Must read
Tutorial: Your first bot
Is anyone else having trouble with the new Guest Mode? I enabled it via BotFather, but it doesn't seem to be working when I tag the bot
Читать полностью…
Wiki of python-telegram-bot - Category Must read
Tutorial: Your first bot
Hey. In order for someone to be able to help you, you must ask a good technical question. Please read this short article and try again ;)
Читать полностью…
Hey. In order for someone to be able to help you, you must ask a good technical question. Please read this short article and try again ;)
Читать полностью…
Hi Jasurbek Yuldoshov Please post code or tracebacks using a pastebin rather than via plain text or a picture. https://pastebin.com/ is quite popular, but there are many alternatives out there. Of course, for very short snippets, text is fine. Please at least format it as monospace in that case., we like to keep our groups readable and thus require long code to be in a pastebin.
⚠️ Your message has been moved to https://pastebin.poolitzer.eu/p/gtYxz9.py. Your original message will be deleted in a minute, please reply to this message with your query.
Hey, I think you're wrong 🧐
This is the support group of the python-telegram-bot library. If you are using a different package/language, we are sure you can find some kind of community help on their homepage. Here are a few links for other popular libraries: pyTelegramBotApi, Telepot, pyrogram, Telethon, aiogram, botogram.
Hey. In order for someone to be able to help you, you must ask a good technical question. Please read this short article and try again ;)
Читать полностью…
Cool thank you, I always forget to ensure they're in separate groups so I thought I may have been doing something wrong
Читать полностью…
what is the right approach for multiple message handlers? Should you just always use unique group=XX in the handler or is there a better approach to stop them blocking eachother?
Читать полностью…
Hello there, @coolheads. You are writing your job offer in our technical focused groups, which is against our rules. To find a bot developer, please look at agencies dedicated towards freelancers. An example of those would be https://fiverr.com, which we are not associated with.
Читать полностью…
Guys, does anyone know how to change the color of the inline button and the reply button?
Читать полностью…
Wiki Category Administration: Bot API Backward Compatibility
Читать полностью…
Added the ability to send messages to other bots via username if both bots enabled bot-to-bot communication.
You can find all updates regarding Bot API 10.0 here
Читать полностью…
Hi all! With Telegram releasing Bot API 10.0 yesterday, I'm really looking forward to using the new Guest Mode features. Does anyone know if development has started on supporting update.guest_message and the answerGuestQuery method? I'm hoping to use it with webhooks soon. Is there a specific PR or branch I can track for this?
Читать полностью…
I actually thought about it, but the docs says the attribute type is tuple[telegram.User] so I wasn’t sure
Читать полностью…