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
You can always look at the docs or do a type() call
Читать полностью…
Yes...sure i'm using a regex but i have to access to the bot message not user message....probably the @BiboJoshi solution can be the right way....
Читать полностью…
Hi Harry...
Thank you for your quick reply....i send from graylog a message with an ip address inside.... The message is sent from the bot itself...
You mean the message includes an IP address and you want to extract that from it, or...?
Читать полностью…
Hey guys anyone know who the "reacted" people in a channel comment are? (Even though they did not react with an emoji)
Читать полностью…
It's keep showing me this error
Tried various ways
It didn't worked out
for mod in USER_INFO:
try:
mod_info = mod.__user_info__(chat_obj.id).strip()
except TypeError:
mod_info = mod.__user_info__(chat_obj.id, chat.id).strip()
head += "\n\n" + mod_info if mod_info else ""
bot/user/chat_data is in-memory only by default. you could use ptbs persistency setup to achieve something like this, but you'd have to be careful not to override data from two different processes. So let me first ask you: What exactly is the goal here? This seems like an xy-problem to me.
Читать полностью…
PTB doesn't cover webdev, the example is just an extremely basic demonstration on how to send a webapp and take input from it
Anything beyond that is completely out of the library's scope
You write and provide the webapp, gotta learn JS or Flask/Django
Читать полностью…
Thank you! I have finally unserstand the difference!
Читать полностью…
In case everyone wonders the same, it seems this is not possible, but it possible to track update in amount of reactions though
Читать полностью…
Or just do it yourself, you should be able to leave without group getting deleted
Читать полностью…
Sounds good....do you know which format is the message variable?
Читать полностью…
If you inject the IP address into the message surely you already have it? Or just do a regex to find the IP if its part of a larger string
Читать полностью…
Wiki of python-telegram-bot - Category FAQ
How do I access info about the message my bot sent?
Hi everyone....i would like to take a message of the bot and extract an ip address from It..... I used the echobot.py but these is only for user....do you have any ideas?
Читать полностью…
and what do you expect that to be instead, this "working it out"
Читать полностью…
mod.__user_info__(chat_obj.id) is a coroutine what is your question
Use hosting, I use pythonanywhere personally
Читать полностью…
I moved this discussion to the off-topic group.
Читать полностью…
It would be great if there is some clear example on how to do that other than the one in PTB documentation example
Читать полностью…
I would like to thank community for all the answers!
Читать полностью…
hello every , please how can know if user click in webapp buttons
Читать полностью…
@loomingsorrowdescent (and whoever else cares) updated the media group example to V20
Читать полностью…
thanks for the offer. ill try and figure something out. because so much to debug =)
Читать полностью…
Hiya, any thouhts on how to test new members entering/leaving chat? do you need to setup additional TG accounts?
Читать полностью…