Telegram and Python - Automate sending messages to Telegram Groups Using Python
VloĆŸit
- Äas pĆidĂĄn 14. 07. 2020
- Learn More Here: www.itpanther.com/blogs/ Code is available at www.itpanther.com/send-telegr...
Subscribe to Support the channel: czcams.com/users/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
czcams.com/users/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! đ±đ»đź - VÄda a technologie
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 czcams.com/video/NZlITndRKLI/video.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"
đźđđ
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 â€
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.
very straightforward, thank you very much !
Thanks for letting me know bro đđ»
Great explanation, thanks!!!
It helped me in my AlgoTrading Course that I was making â
Good to hear that.
Hello can you please help me??
Nice work. I wish to have a good job in Ur field
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 đ
Greate Job Bro!
BIG RESSPECT!
You got 1 sub from me!
Stay safe and happy life Bro!
Thank You. Glad it helped.
Thanks a lot really helpful for Algo Trading
wow, thanks a lot, you rock
Hello.. Can you post to a muted group? I mean when the group is opened, our message is automatically sent?
Hey, do u know how to create a script that can comment first to the posts?
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.
Great video. Very useful!
Well done
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?
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?
worth it buddy, really cool
Thank you
Thank you for watching bro. Really appreciate.
Thanks from Russia, I found a good explanation!!!
Bro, can u help me pls? Could u tell me free host for this python bot
Thank you
How can I include myself in the new group (so I can also receive the telegram message)?
Lifesaver. Huge thanks.
Glad that it helped.
can you plz tell me how "message_auto_delete_time" this command will work???
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
super simple, amazing tutorial, totally works
Glad, you liked it !!
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
Amazing thank you so much :) !
Welcome man
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
Very helpful.
Thank you very much, great tutorial!!!!
Glad that it helped.
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
Sir, will posting repeat again from the start, after last message is delivered by the bot?
thanks Vikas
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.
how can this bot send PM to anyone who joined the group?
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 đ„șđ
Is this like the Ad Hosting services that im seeing on telegram?
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.
Nice Vikas, Tank you so much.
You are most welcome
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 czcams.com/video/JBb4-Zeezss/video.html
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.
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đ
Thank you.. .it worked and i learnt if from you
Glad to hear that
Thanks a lot, it helped me.
Glad it helped.
@@VikasJha001 please make a video to read message and forward them to a specific contact
Can you send me link to download the python software
Thanks a lot!!!!
Welcome
Sir how can I send hashtag messages by this method?
Can you make one video regarding how to auto post any message every day in my telegram channel from Google Sheet?
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.
Does it work on channel too? Have you try?
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.
How I can get the group chat id
Congratulations on the video, but what if I wanted to send the data of a table in xml or json?
You can
Bro need bit help of you.If you can than plz help.
bro how to set this in telegram channel
bro very helpful video
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 czcams.com/video/NYT1KFE1X2o/video.html
i just want to say Thank you !!!!!!
You are welcome
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.
big likeđđ»đđđđđ
Thank you! Cheers!
How do you send the message to the group everytime there is a new entry?
great tutorial
Thanks
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
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.
Can you help me with sending message with multiple groups đ
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
czcams.com/video/q53ztsLeTL8/video.html
You gave us idea & I made it into program. I also want to add more features but I donât have codes
Nice explaining
Thanks đ
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 ?
using api id and hash id how can i forward telegram messages 24/7 free on python script
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.
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.
thnks
Glad it helped bro
Bro How can we integrate this as a userbot
How many times the bot is automatically sending ?
how to send link as message
your video really helped me! is it also possible to program a bot which can delete other botâs message.
Yes, it is possible.
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 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.
Can you please help me send images too
How to use an tele id instead of bot
Please
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
I want to use my own account not bot what i can do
You can use Telegram Telethon.
how do i prevent the quotation marks printed on telegram?
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.
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
can you copy and paste the script here, not working for me!
Bro, Please follow the instructions, it should work. I do not have code handy as it is old video, almost been three months now.
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?
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.
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.
What to do if want to send auto msgs from personal ID using string session
u got solution?
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.
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.
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 czcams.com/video/JBb4-Zeezss/video.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 CZcams APIs. I do not have any readymade videos on this. However, this is pretty straightforward, please Google CZcams APIs.
how do i install the notebooks? like yours
Please install Anaconda software. Anaconda contains Jupyter notebook which I am using to code in Python.
docs.anaconda.com/anaconda/install/windows/
@@VikasJha001 Thanks mate I have simple way to auto post if u want i will teach you
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?
Can we send messages to someone using apis ?
Of course you can do that, check my other videos in Telegram playlist.
Please I have an issue with the request library, how do i resolve that
What's the issue bro? Try re-installing or share issue detail.
How often can you send a message with this bot per second, is there a limit?
Hi Bro, 20 messages per second to the same group can be sent.
Please check more about limits here bro
core.telegram.org/bots/faq#:~:text=When%20sending%20messages%20inside%20a,messages%20per%20second%20or%20so.
@@VikasJha001 Thank you very much. My bot works great now, keep up the good content
@@maxs.8146 Glad it helped bro đ