This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
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 ;)
Читать полностью…Not with the same implementation: Avoiding flood limits
Читать полностью…telegram.Update.effective_user, telegram.InlineQuery.from_user ᵀᴱᴸᴱᴳᴿᴬᴹ
Читать полностью…ATM Message.date
is UTC. There is a pull request to make use of tzinfo set in Defaults
, will be merged in the future - see #3632
🔒 A whisper message to Pokemon Master, Only he/she can open it.
Читать полностью…The github project uses PTB v13, and it's deprecated/unsupported
Читать полностью…Hi. I'm a bot that will announce the rules of the python-telegram-bot groups when you type /rules.
Читать полностью…Hey! Rn my bot is setup to run in dms with /start, it uses the message sender user.id and just logs to a db and later just loops over each id to send alerts.
How would this be modified so that the bot can be added to any group, started with a command and grabs the id to send alerts in a similar way to dms?
I tried to add it in a group but the bot doesn’t see the command unless it’s sent directly
perplexity.ai just launched a chrome extension now where you can search for something in the current domain.
I just tried it with PTB, it works very well provided you mention "in v20" in all your queries
I think it worked for some time, but now it just waits, bot isn’t responding to messages
Читать полностью…hi everyone, how do you send a bot admin to a channel and a message written to the channel automatically sent to bot users?
Читать полностью…hello, python-telegram-bot has an analogue «from telebot.util import antiflood» ?
https://pytba.readthedocs.io/en/latest/util.html#telebot.util.antiflood
It's used in all method arguments that accept datetime objects eg ban until
Читать полностью…At this time the only (i think) way Default.tzinfo
is used is in job_queue
PullRequest #3632: Localize datetimes to defaults timezone by Trifase
Читать полностью…Hi, I have a doubt about using tzinfo as a default value. What exactly change if you set one or not? I was logging update.message.date
thinking it would be affected, but no, using a default value or not the date was UTC (i believe this is the normal way for Telegram)
Thanks
Now seems fully v13, but nothing is calling main()
Update.chosen_inline_result
python-telegram-bot documentation for this attribute:
telegram.Update.chosen_inline_result
Telegram's official Bot API documentation has more info about Update.
Your bot.py uses v13 and v20 code mixed together - it will never work
Читать полностью…hi
im using https://github.com/PokemonMaster23/Mega-Link-Downloader-Bot this repo
and i filled config.py
but when i hit enter python3 bot.py nothing comes...
heres the screen recording - https://dood.yt/d/czz8y2385rza
and heres the bot.py i used - https://pastebin.com/37WQi3gM
anyone help me to solve the issue...
You can modify the privacy to listen to every message, but beware: you can't DM users unless they manually /starts the bot in DM first
Читать полностью…Rooms in this case are objects the user chooses from. How can the bot see which one the user chose?
Читать полностью…Same dude I have also started coding 5months ago and get helped from chatgpt when version 20 was not released
Читать полностью…