Answer the question
In order to leave comments, you need to log in
How to make mailings and view subscribers in a Telegram bot written in Python?
Greetings.
I have already asked this question before, but they did not give me a sensible answer to it, but I really need it.
Please tell us with details (or give a link) how to see how many subscribers there are in a telegram bot and how to make mailings?
If you yourself do not know - please pass.
With assumptions, too, by, I need a clear answer. I'm a complete newbie, so just posting the name of this function is not an answer.
I hope there are adequate people who can clearly explain.
Answer the question
In order to leave comments, you need to log in
How to find out how many subscribers?:
Unfortunately, it is impossible to find out how many subscribers a bot has.
But, there are other options, for example, a database, using the database, you can count users in the bot.
Let's take the /start command for example, when clicking on it:
1. If the user clicked for the first time, then add +1 to the value in the database.
2. If the user is not clicking for the first time, then we simply ignore it.
How to do mailings?:
In this situation, a database is also needed.
Let's take the /start command again:
1. When the user clicks for the first time, add him to the database.
2. Create any other command with which we will do the mailing:
2.1 In this command, we go over all the users in the database and send them the desired
Mongodb message - a good base for this, I think you'll figure it out.
If you don't understand something, I'll try to explain in the comments.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question