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
i was wrong by the way, however there are some things that are worth noting
Читать полностью…
Wiki of python-telegram-bot - Category Design Pattern
How do I enforce users joining a specific channel before using my bot?
async def is_premium_user(uid):
t=await get_premium_until(uid)
if not t: return False
if t<time.time():
await set_premium(uid,None); return False
return True
What's up with that reaction haha, did I say anything wrong lolz
Читать полностью…
Hi KS 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.
⚠️ The code snippet(s) in your message have been moved to https://pastebin.poolitzer.eu/p/NY4dO0.py. Your original message will be deleted in a minute, please reply to this message with your query.
What I mean is that anyone who wants to use my bot must first become a member of my channel.
Читать полностью…
I have a bot and I want to add mandatory membership to my channel but I can't. Can you help me?
Читать полностью…
Yeah I checked it
But still not getting it properly
Can you summarize the rules
Like how I’m supposed to behave
All I know is no AI msgs
I’m new here
Don’t know Python that well 👀
What’s this code of conduct btw
And why should I even follow it
buy a cheap host and ask ai to help u to run it on a host
Читать полностью…
you might have to ask them here
https://codeberg.org/Lonami/Telethon
why you want a bot to create categories?
Can a bot edit a channel post using premium emojis?
Читать полностью…
For service messages, have you tried passing +UpdateTypes.ALL+ to +start_polling allowed_updates+ !search
Читать полностью…
I love and hate computer science at the same time
Читать полностью…
Man studying common design patterns is one thing.
Studying an entire article just for 1 telegram bot function is just bonkers
if im not wrong the issue sometimes is that the api method does not return an instantly updated result
Читать полностью…
This works for me.
Code is from ChatGPT and I succeeded in like 2 minutes so it shouldn't be too hard
https://pastebin.com/kfHxuQKq
Hi KS 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.
⚠️ The code snippet(s) in your message have been moved to https://pastebin.poolitzer.eu/p/vTg2HQ.py. Your original message will be deleted in a minute, please reply to this message with your query.
Yeah I understand now 👀
I’ll make sure it doesn’t happen again
You could read it to find out, and because otherwise someone might timeout or ban you for misbehaving
Читать полностью…
@TechnicalSerena please observe our code of conduct
Читать полностью…
FORWARD_DELAY = float(os.getenv("FORWARD_DELAY", "3.0"))
Читать полностью…
telegram.constants.UpdateType.POLL
Parameter allowed_updates of telegram.ext.Updater.start_polling
This group is about the PTB library, which is not an MTProto wrapper
Читать полностью…