Answer the question
In order to leave comments, you need to log in
Is it possible to make an infinitely working telegram bot?
Sorry guys, but I have a couple of questions
1) how to make it constantly working? For some reason bot.polling(none_stop = True) doesn't work
2) how to get text from user from group into variable?
3) how to write with the help of a bot to another bot and a person in PM?
I will be very grateful to everyone who helps!
Answer the question
In order to leave comments, you need to log in
1. How exactly does it not work? Give a minimal problematic code example and the full text of the error (+ traceback).
2, 3. Depends on the library used to communicate with the telegram. Without knowing which one you use, it's hard to tell - but you can certainly google the documentation and / or use cases.
2. Your bot can only receive messages from the group through commands or if he is a group administrator!
3. Using id (id can be found using message.chat.id or query.message.chat.id - the difference is that query - Inline button; message - message)!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question