Telegram and Python - Automate sending messages to Telegram Groups Using Python
HTML-код
- Опубликовано: 14 июл 2020
- Learn More Here: www.itpanther.com/blogs/ Code is available at www.itpanther.com/send-telegr...
Subscribe to Support the channel: ruclips.net/user/vikasjha001?sub...
Need help? Message me on LinkedIn: / vikasjha001
Want to connect on Instagram? Here is my id @vikasjha001 Connect to me:
💥 LinkedIn
/ vikas-kumar-jha-739639121
📷 Instagram
/ vikasjha001
✈️ Channel
/ lifebeyondwork001
Do Subscribe
ruclips.net/user/vikasjha001?sub_con...
=================================
In this session you will learn about automating sending messages to Telegram Groups Using Python. This Python program can be very useful when you want to automate getting notification on certain things such as stock price changes, product price changes, IPL score etc.
This python program can be enhanced along with webscraping to send data at regular intervals for literally about anything.
If you like my content do consider subscribing for more such contents around Python programming.
#vikasjha001 #telegram #telegramautomation #pythontelegram
Connect to me:
💥 LinkedIn
/ vikas-kumar-jha-739639121
📷 Instagram
/ vikasjha001
🤖 Tech Channel
/ vikasjha001
✈️ Travel Channel
/ lifebeyondwork001 Sign up to Skillshare using this link and get one month free membership.
itpanther.com/skillshare Buy my Udemy courses at a special price for a limited time:
✅ www.itpanther.com/prometheus-...
✅ www.itpanther.com/grafana
✅ www.itpanther.com/python
✅ www.itpanther.com/liferay
✅ www.itpanther.com/apachenifia...
✅ www.itpanther.com/apachenifi
✅ www.itpanther.com/redis
🤝 For collaboration or other inquiries connect
📧 Email: learnwithvikasjha@gmail.com
📞 Whatsapp: +917042103414
Connect on Social Media:
LinkedIn: / vikasjha001
Twitter: / vikasjha001
Instagram: / vikasjha001
🚀 Enjoying our tech videos? Help us raise a virtual toast! 🍻
If you've found our tech insights, tutorials, and reviews valuable, consider supporting us by buying us a virtual beer. Your contribution helps us continue creating quality content, investing in better equipment, and exploring even more exciting tech topics.
🍻 Your support means the world to us! Every "beer" brings us closer to creating more engaging, informative, and fun tech content for you.
🍺 www.buymeacoffee.com/learnwit... 🍺
Thank you for being a part of our tech community. Together, we can make technology more accessible and enjoyable for everyone!
Stay tuned for more tech adventures! 📱💻🎮 Наука
Code is available at www.itpanther.com/send-telegram-messages-automatically/
Learn to host this code on IBM Cloud, so that this code can run 24*7 for free ruclips.net/video/NZlITndRKLI/видео.html
If you need help in creating Telegram Bot or want me to help or fix issues of your Telegram bot then you can get my services on Fiverr www.fiverr.com/s2/376cf9b79f
would you create telegram chatbot applications that indicate Google stock with settings in the form of 5 highest price conditions, 5 lowest price conditions and 30 day predictions forward with the RNN method strengthened in LSTM to get computational precision from Google_Stock_Price_Train and Google_Stock_Price_Test data with telegram chatbot calls of "highest 5", "lowest 5", "30 day prediction"
😮😊😊
It helped me in my AlgoTrading Course that I was making ✌
Good to hear that.
Hello can you please help me??
Great explanation, thanks!!!
Sir, how to do it for multiple messages where every message contain many lines which are having title, subheading and body text? I tried with linespace for title, subheading, body text and commas to club all such message in one code, but it does not work.
Tks VIkas! Your are the best of the best ❤
very straightforward, thank you very much !
Thanks for letting me know bro 👍🏻
Fantastic, I have one qsn
how can I use this bot to send messages to me alone instead of group/channel.. i want to set some updates for my work.. can i get notification to my id alone?
Nice work! I got everything to work except for the time. The coding is correct but it's not performing the action. Is there an extension that I need to install?
Thanks for your explanation. It was exactly what I needed. We have forgotten to close the garage quite a few times. Now we get Telegram messages when it is open for 2 minutes.
Great 👏
Thanks a lot really helpful for Algo Trading
Can I use many group id's that I do not own? I want to create a bot that promotes things in groups but I am not sure if I can send the messages in multiple groups or not.
Thank you for the video. I am able to make the bot and it easily sent the messages in group. Thank you again
Great to hear that.
Greate Job Bro!
BIG RESSPECT!
You got 1 sub from me!
Stay safe and happy life Bro!
Thank You. Glad it helped.
wow, thanks a lot, you rock
Nice work. I wish to have a good job in Ur field
Also see how you can automatically reply to messages sent by users in a Telegram Group: ruclips.net/video/JBb4-Zeezss/видео.html
Connect to me:
💥 LinkedIn
www.linkedin.com/in/vikas-kumar-jha-739639121/
📷 Instagram
instagram.com/vikasjha001/
🤖 Tech Channel
ruclips.net/user/vikasjha001
✈️ Travel Channel
ruclips.net/user/lifebeyondwork001
Subscribe if you like my contents and want more of them.
ruclips.net/user/vikasjha001
=================================
Watch complete Python Playlist Here: ruclips.net/video/cCwnDBF23mQ/видео.html
Join our Telegram Group for daily Python Tips: www.t.me/pythonindian
Bro could u help me pls? Can u tell me free host for this python bot
@@flashbackck You can use
1. pythonanywhere
2. Heroku
@@VikasJha001 thanks, I will try)
How can in remove _bot in bot's name?
Thanks from Russia, I found a good explanation!!!
Bro, can u help me pls? Could u tell me free host for this python bot
Lifesaver. Huge thanks.
Glad that it helped.
Great video. Very useful!
Well done
Hey, do u know how to create a script that can comment first to the posts?
worth it buddy, really cool
Thank you
Thank you for watching bro. Really appreciate.
super simple, amazing tutorial, totally works
Glad, you liked it !!
Hello, I dont know if you're still responding but are you able to make a video tutorial about making a Telegram bot send a couple of messages at different specific time everyday? Like for ex it will send this message on this time, and another message on this time and it basicall sends it everyday? Also another question, will the bot be shut down if i shut down my pc? I'd like it to be constantly on but I dont wany my pc to overheat and get high electricity bill.. Please respond cuz I'm having a crisis. I dont know a single thing about coding or even python but I still understood everything you said here 🥺💓
Hello.. Can you post to a muted group? I mean when the group is opened, our message is automatically sent?
I like the way that you use Anacondas and Jupyter Notebook to run your code. Now I have a question. Can I use pretty much the same method to build a robot that is responsive to the users' messages? If yes, can you guide me through please?
wrrr
can you plz tell me how "message_auto_delete_time" this command will work???
Very helpful.
Nice Vikas, Tank you so much.
You are most welcome
Thank you for such a nice explaination. Can you also tell if it is possible to send picture or video?
It is possible, I have already created a video on that, so go and check that out.
Very nice video..Thanks...God bless you...
Glad that it helped🙏
Bro github repo mil sakti auto forward bot bot ki... If you have please reply
Thank you
Amazing thank you so much :) !
Welcome man
Thank you very much, great tutorial!!!!
Glad that it helped.
How can I include myself in the new group (so I can also receive the telegram message)?
thanks Vikas
Sir, will posting repeat again from the start, after last message is delivered by the bot?
brother how can i get the messages list or the message_id of all the messages sent in my own group in which my bot is present and it does have the access to all messages
i WANT TO SEND MESSAGE TO NORMAL PERSONS AND NO TO GROUP, HOW TO DO THAT? I can automate that on watsapp and python but no yet on telegram
Thank you.. .it worked and i learnt if from you
Glad to hear that
Can you make one video regarding how to auto post any message every day in my telegram channel from Google Sheet?
Is this like the Ad Hosting services that im seeing on telegram?
big like👌🏻👏👏👏👏👏
Thank you! Cheers!
Congratulations on the video, but what if I wanted to send the data of a table in xml or json?
You can
hello vikas
thank you for this video
i just wanted to ask one question
i want to create a bot for my friends group where
if certain text/word is typed
the bot response with a comment on it
is this possible
and how ?
please reply to this
Please check my other video in Teelgram playlist where I have shown how to automatic reply to any Text message using Bot.
i just want to say Thank you !!!!!!
You are welcome
how can this bot send PM to anyone who joined the group?
Thanks a lot!!!!
Welcome
Does it work on channel too? Have you try?
Thanks a lot, it helped me.
Glad it helped.
@@VikasJha001 please make a video to read message and forward them to a specific contact
great tutorial
Thanks
Very nice keep doing similar programs. Can you help me in sending images I tried but didn't work.
Here is the video which shows how you can send Images or Files ruclips.net/video/NYT1KFE1X2o/видео.html
This is GREAT WORK! Very valuable. Not the jokes :) but for algo trading.
How can I use it in algo trading can u help me?
@@kumarisuman629 So that you don’t spend all day in front of desk, use it to warn you when your parameters are met, RSI > X
@@sifisomalinga9342 yes I know but I try to make but it doesn't work😑
Nice explaining
Thanks 🙏
Thanks and God bless for the video, I have a question
1. Do I need admin access to a group before adding a bot to a group ?
Glad that it helpes.
No, you dont need admin access. Mostly all the group allows adding member accesa, thats enough to add any user/bot to the group.
Admin is required to add bot
@@chidozieokeke8655 Depend on the Group Owner. If they block member adding bot. You can not do anything.
Sir how to make this module to send message whenever someone write anything on the group and it replies? Please reply
It is possible, I will make a tutorial on that.
@@VikasJha001 Hi there! Just wondering if this tutorial is up yet? I'm also an interested learner. Wish to know how to create a module that replies something whenever someone in a group says a string of something. :)
@@tohwenhui4526 Created now, Watch at this link ruclips.net/video/JBb4-Zeezss/видео.html
Hi Vikas Jha thank you for this video. I’m new to Telegram (and zero exp on Python) but will use Telegram for work and need a function to blast multiple chats (group chats). I watched your video and followed instructions on BotFather and downloaded the latest version of Python. But when I put the code in starting telegram api - it keeps coming up as Syntax Error. Can you help me please?
Same with me
How do you send the message to the group everytime there is a new entry?
Hey bro , now these messages are coming from our bot right. so how can we do a program that allows our account to send message..(not the bot, but the message needs to be coming from our account) and send messages like these
Search my videos which is using Telethon, using this you do all telegram operations using your own account.
Sir how can I send hashtag messages by this method?
Can you send me link to download the python software
bro how to set this in telegram channel
bro very helpful video
thanks, the get method is not the most secure one, how can we send messages using the post method,
the second question, how to send automated messages exactly this one on channels
You can change from get to a post request and it will work the same way.
Just provide channel ID to send the message to a channel.
Bro need bit help of you.If you can than plz help.
I need some help
if i have json api if json api in any update then auto send in telegram how yo make this?
Hi Deepak, You may do these steps in a loop
Step 1: Store Json Output in a File called old.json
Step 2: Ping API to check new JSON Value and Store it in a variable called recent_json
Step 3: Read data from old.json and store it in a variable old_json
Step 4: Compare old_json and recent_json variable
Step 5: If there is any change in old_json and recent_json then call telegram to send message that there is some change in JSON
step 6: remove content from old.json and update value from recent_json
step 7: sleep for 5 minutes and repeat the loop.
your video really helped me! is it also possible to program a bot which can delete other bot’s message.
Yes, it is possible.
Thank you so much ! Thank you !!!!!!!!!
You are welcome. You can watch my latest video on telegram. That covers everything in Telegram.
@@VikasJha001 do you know how to run python script on a Cloud / Server for 24/7 for free ?
Can you help me with sending message with multiple groups 📌
How I can get the group chat id
How many times the bot is automatically sending ?
One of the params is missing or invalid.
Got this error message. Is the adding of the bot into the group only possible by group admin? If im not an admin of the group i cannot add bot?
Yes, It is only possible through Group Admins. Remember, Telegram is well known for its security.
Thank you for that wonderful tutorial really helpful, But how to send the message with special characters like @, #,...
Please use HTML Parse mode for special characters. See the reference here. stackoverflow.com/questions/50281656/telegram-bot-should-send-url-that-contains-character-but-it-sends-the-url-o
@@VikasJha001 Thank you for the reply still I am not getting it. plz send me the sample code with an example or send the code taught in this video by using HTML parse.
thnks
Glad it helped bro
Bro how to send dictionary data to telegram channel through get or post request?
Hi Bro, You will have to flatten dictionary to string and then everything else will remain the same as shown in this video.
For flattening you can follow the solution mentioned here
codereview.stackexchange.com/questions/7953/flattening-a-dictionary-into-a-string
Can you please help me send images too
Great video, could you please tell me how I can remove the " marks from the text being printed in the telegram group? Can't find how to do it
Actually I have figured out how to do this, but I can't figure out how to get the time function to work. I have copied everything you have done. I am printing 1 message in the telegram group and trying to get it to repeat every 10 minutes, I've got import time at the top and I have tried using time.sleep(10) at the bottom of the code to test if it works every 10 seconds but it only sends the message once when I run the program, it doesn't repeat it like the tutorial shows
Is it working or do you still need help?
Hey man, how did you remove the marks, please ?
@@TheDoluju which marks? Can you please highlight time timeframe of that part in the video?
Bro How can we integrate this as a userbot
How to use an tele id instead of bot
Please
Is it possible like i created a bot and add to the group as admin, but this bot able to send message to other message and take response from other group and paste it to our group?
It is possibke, see my other videos in this playlist where I have shown how to auto reply to any messages using BOT.
@@VikasJha001 no I didn't want auto reply.. Like i had a bot and let say one user put a message on the bot . And this message goes to other group which is not mine and take response from other group and put on that user interface which is using.
using api id and hash id how can i forward telegram messages 24/7 free on python script
How to Create a bot without joining the source group it will forward messages to the designation group is it possible?
It's not possible.
@@VikasJha001 if it is not possible. Then pls tell me i have a telegram script I want to run the script 24/7 free my script is not working on pythonanywhere because it shows connection error 111 and when I run the bot script it's working fine.
Bro i do it everything but in my telegram group message is send by my name not by my bots name ? What to do for it, I want to send messages by my bot . My bot is already in group & i have gave him only post messages access
Reply please
ruclips.net/video/q53ztsLeTL8/видео.html
You gave us idea & I made it into program. I also want to add more features but I don’t have codes
how to send link as message
Sir I want to Know how to autopost a Message from Channel A to Channel B using bot Please Help
Please see me telegram related videos, You will get to know everything.
Can we send msg to other group also using this bot ?
Like promotion of our product
Yes, it can be done. I have shown that in many of my videos. Please go through the Telegram crash course available in my youtube playlist.
how do i prevent the quotation marks printed on telegram?
How can we send particular messages to multiple groups like to 50-100 groups every hour? Pls help sir! Thanks a lot! 🙏🏻
You need to add bot in all the groups and you will have to know chat ID of all thr groups. After that you can just loop through all the Chat IDs and send a message as shown in this video.
@@VikasJha001 Sounds good bro... If possible, I request you to make a video on how to do that... I want to add about 100 groups... You can add 3-4 groups and show how to do it... That would really really mean a lot to me as I'm trying to do it since a month tbh! Thanks a lot for the reply! Appreciate it! 🙏🏻❤️
I see some users sending messages automatically to groups they are not bots but how do they do it?
please make a tutorial
There are many ways bro. But this TUT is the best safe way.
I want to use my own account not bot what i can do
You can use Telegram Telethon.
Bro can we automate our telegram acct..in another's group...( coz we can't add bots in others group)
Not possible brother. If you want to use telegram Bot API to send message to a group then bot must be part of the group.
@@VikasJha001 I have seen someone doing it by send advertisement ads on some groups every 2 hrs this person will auto post into these groups. Wonder how he do it
@@Francisong55 if anyone knows let me know
Vikas Jha : DO NOT SHARE YOUR BOT'S API
Also Vikas Jha literally shares his bot's API to 15000 people
Brother, I deleted that BOT. So I am fearless 😆
what happens if that api is shared
@@mayer6094 Well there are many things can happen.
If API is shared, Person can see all the groups which this BOT is part of. Also, if your have added BOT as an admin in groups then all the group members can be kicked out or can be sent some messages etc.
So in short, anyone will have total control ober your bot.
What to do if want to send auto msgs from personal ID using string session
u got solution?
Is it possible to sending direct messages to members? Also how can I put a link in a text message? Thanks
Yes, that's possible. I've shown that in some of the videos. Please check my playlist and look for Telegram videos.
so for this bot to work ,I should run the script constantly in my PC?
You can host it on free Python hosting providers such as Heroku or others.
how do i write a bot which shares a the link of youtube video whenever a channel uploads a new video
Check my latest telegram automatiom videos, you need to use HTML parse.
@@VikasJha001 can u link it and i want it to happen for multiple channels(youtube channels)
@@VikasJha001 .
please
please
@@tusharmaharana3373This video shows example of HTML parse mode ruclips.net/video/JBb4-Zeezss/видео.html
Using HTML parse mode you can send any links, Refer to any Telegram users, Use HTML commands etc.
To Identify latest video of an youtube channel, you will need to use RUclips APIs. I do not have any readymade videos on this. However, this is pretty straightforward, please Google RUclips APIs.
Bro I have a ID of a private channel how can I send a message there ..please help
You cant send any messages to the group if your bot is not addes there bro.
(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
what do i do about this?
Sir where are you writing this python code??
It is called Jupyter notebook. Jupyter notebook also comes bundled with Anaconda.
Are you currently using PyCharm or any other IDE?
hey man, you helped me automate Telegram using a smart button for a university project. All I needed is the custom Link to send a message to a Telegram Group.
I'd love to donate, do you have a PayPal or something?
Great to hear that videos are helpful.
@@VikasJha001 I'll make a video about it and credit it you and link it here, once it's in place. Thanks again