Would you be interested on a Telegram bot that can scrape the members of any telegram bot and send messages on each of them?
If yes, in this article and also in the top youtube video I am showing how to do it.
So lets start..
1. You have to download the project from my github repository which you can find on this link: https://github.com/redianmarku/telegram-dm-bot. You can download by clicking in the code icon and in download zip. This will download a zip file of the bot in your computer and all you have to do for now is just to extract it.

2. After extracting, lets install a code editor in our computer. I prefer to use VS Code because is very popular and easy to use. Now we can use VS Code to open our bot, just open the code editor and click on open folder then choose the bot folder that you extracted. Another thing that we need is terminal where we can run commands. In VS Code click on terminal/new terminal in the menu.
3. Now lets setup the bot by running the setup python file of the bot in terminal. To run the installation first we have to type on terminal “python setup.py -i”. The press “n” for now and enter. After installing requirements now we have to create a telegram api id and hash.

4. To create these you have to go to https://my.telegram.org/auth and register with your phone number. In this page we have to create a new app and copy api id and hash.

5. In terminal run “python setup.py -c” and paste your api id and api hash. After all this process is finished we just have to run the bots. The first bot we have to run is the scraper that it is going to scrape members of any group in your telegram.

6. To run the scraper type this command in terminal: “python scraper.py” it is going to ask you which group you want to scrape the members from and after it is finished you will see a memebers.csv file in the bot folder.

7. Now is the time to run the sms bot, so to do that just go ahead and run this command on terminal: “python smsbot.py members.csv”. Now the bot will send a message you want to all members from the csv list and it will wait 120 seconds between each message sent.

Ok people, that was it I hope this article was helpful. If you are having troubles during this process you can follow my youtube video for better understanding. Thank you!
Hey bro, you are really good and i need a help. Can you build a bot that can follow someone’s followers ? and also we can set a limit like 100 or 200 follow? any help
Yo, i just saw your follow bot video, with unofficial API. Is it safe to use that bot on real account? within instagram temp ban limit ofc
Is not completely safe but you can test first in a testing account, then if it bans you can try to play around with time delays and maybe find a perfect way to not get banned
Hello! Is it possible to add multiple telegram accounts with this bot? That’ll help send messages faster.
No you cant make it in this way because every account need verification with code, but maybe you can create multiple sessions with different accounts but anyway this will not help to send faster because you will get banned and telegram will realize that you are doing multiple accounts.
Ok. Thank you for Your response. Keep up the good work! Appreciate it!
can you add proxy support so the script runs through a proxy? happy to pay for that addition
I am not sure if I can do that but let me know why do you think proxy is needed?
Does this bot still work? I had a issue while scraping
did i buy this boot first, can i use it?
What do you mean, I don’t understand your question.
Hello Redian awesome work I used the telegram dm bot and seems to stop all the time on the second person… Any suggestions
This usually happens when you already reached the limit of the dms sent. You can try again after waiting for some times or you can send dms with a slower speed.
please , the tweeter scraper bot you posted 4 months ago, i followed all the steps today , while trying to run the RUN.PY, after putting my keyword and delay time , its encountered an error ..i want to know if the bot is out of date ? one more thing, can you build a bot that can scrape emails and phones numbers from telegram groups ?…THANKS
Hi. I got stucked on the step where you will run the scraper.py. I got an error that says ModuleNotFoundError: No module name ‘telethon’. What does this mean and how can i solve it?
This is a super great video. I have encountered an issue though: The CSV file did not appear in my folder and thus, I got no contacts. Any help plz? Thanks
Hi there, I just noticed your RSS feed isnt functioning correctly, Thought I should let you know.
Wow!, this was a real quality post. In theory I’d like to write like this too – taking time and real effort to make a good article but what can I say I procrastinate a lot and never seem to get something done
can i change the bot function
like when a member type “hello” then bot dm
No I am sorry the bot is not able to do that at the moment.
Would be great if you could add instructions on installing python on windows machine. Even thought it is installed, executing “python setup.py -i” spits out error.
Here is the error:
> python setup.py -i
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.