How To Create A Telegram Bot With Python

Sdílet
Vložit
  • čas přidán 8. 07. 2024
  • Learn how to make a Telegram bot with Python - a guest video by Jacob from ClarityCoders.
    Check out my Twitter for more content: / ykdojo
    Also check out Jacob's channel for more Python vids: / claritycoders
    And here's the code he showed in this video: replit.com/@JacobLower3/Teleg...
    On Replit, you can get 2 months of free hacker plan with this code: csdojo2 (claim it at replit.com/claim)

Komentáře • 478

  • @prasadbylapudi4755
    @prasadbylapudi4755 Před 3 lety +281

    Finally, You remembered you've CZcams channel 😂

  • @cloudietech5825
    @cloudietech5825 Před 3 lety +42

    Hey CS Dojo, you are an inspiration!! I started my youtube channel on programming and software engineering because of you and been finally growing! Thanks for all your great content and always keep making helpful videos!!
    btw, I'm also from the University of British Columbia :)

    • @CSDojo
      @CSDojo  Před 3 lety +7

      Thank you for your kind words!!

  • @pain1737_6
    @pain1737_6 Před 2 lety +1

    I have seen many videos to make a telegram bot, I just got the information I need from your video, appreciate you man thanks a lot

  • @mohammedmhilal4129
    @mohammedmhilal4129 Před 3 lety +19

    That was fun. You should make a series out of this.

  • @nil9754
    @nil9754 Před 3 lety +20

    13:56 nice save

  • @sunilkulkarni4426
    @sunilkulkarni4426 Před 3 lety +75

    FINALLY A VIDEO FROM CS DOJO

  • @ClaudioBOsorio
    @ClaudioBOsorio Před 2 lety +1

    oh man i love python. 13 lines of code from which 3 are spaces and you got a functional bot LOL... Thanks for the video and the people behind the packages too obviously :)

  • @yosimadsu2189
    @yosimadsu2189 Před rokem

    Wowowoww, from zero to understand in 5 minutes... Thanks 👍👍👍👍👍

  • @koroviev8897
    @koroviev8897 Před 2 lety +9

    That was a great tutorial! Thank you very much :D

  • @sipp5657
    @sipp5657 Před 3 lety +5

    he looking different in a good way though 🔥

  • @jasgarcha4783
    @jasgarcha4783 Před 3 lety +3

    Long overdue video from CS Dojo More frequent I hope😂

  • @MohammedUsaid
    @MohammedUsaid Před 3 lety +8

    Welcome back CS Dojo! Could you please do a Discord bot as well too?

  • @maiconreis9276
    @maiconreis9276 Před 2 lety

    The better video that I have ever seen in CZcams. Congrats on video.

  • @sciencekafunda305
    @sciencekafunda305 Před 3 lety +1

    You are the best programmer but plz show your talent every week

  • @goodtechdoor
    @goodtechdoor Před 2 lety +1

    Thank you for introducing me to replit!

  • @ashkannoone1479
    @ashkannoone1479 Před 3 lety +2

    what a great work! I would appreciate it if You make a Video about a bot that Takes a string from a person who have pass code( with If loop) and post that string to other users that run another command!

  • @laviniaaparaschivei9264
    @laviniaaparaschivei9264 Před 3 lety +6

    Thanks for the tutorial! It was useful to me. I would love to see others like that.

  • @nijoeli
    @nijoeli Před 3 lety +7

    Keep the Telegram videos!! Please :) it was cool

  • @ShaneMarkusJohn
    @ShaneMarkusJohn Před 2 lety +3

    13:54 love how quickly you caught yourself hahaha

  • @codigoaldea7925
    @codigoaldea7925 Před 2 lety

    nice video, looking forward to see more videos on bots.

  • @rrahll
    @rrahll Před 3 lety +2

    Cool! Thank you! Really useful tutorial!!!

  • @m0t1vAtEd
    @m0t1vAtEd Před 3 lety +15

    Feeling first with 26 others.

  • @ryanisthewind
    @ryanisthewind Před 3 lety +2

    wow, great tutorial.
    will it scale? I mean is it going to work with more users or we should deal with threads?

  • @ajaysen7290
    @ajaysen7290 Před 3 lety +3

    Hi CS dojo,
    I love your videos on python oops concept. I am a python programmer and now I am learning java, could you please make a series tutorial on Java or Java OOPS concept.

  • @honeypatel14
    @honeypatel14 Před 3 lety

    Awesome video! I want to learn how to create a bot that sends you notifications every hour regarding stock price, weather, news or quotes.

  • @DouweHummeling
    @DouweHummeling Před 3 lety +2

    I'd love to see a video about a bot sending back photo's, gif's, etc.

  • @mohapeth748
    @mohapeth748 Před rokem

    The GOAT Thanks you for this video ✨

  • @noushadkhan1647
    @noushadkhan1647 Před 3 lety +1

    Thanks for the video.
    We want more telegram, not related videos.

  • @pivotsclips8024
    @pivotsclips8024 Před 3 lety +5

    Thank you dojo from Sri Lanka 🇱🇰

  • @pawelpow
    @pawelpow Před 3 lety +6

    Replit. It’s actually amazing, My school uses it and it was my first IDE that I learned to code on about a year ago

    • @c3vs241
      @c3vs241 Před 3 lety +1

      I agree, I use it to check my codes quickly 👍

    • @diablolaggo870
      @diablolaggo870 Před 3 lety

      Hell yeahh!!

  • @hanialadmaai5596
    @hanialadmaai5596 Před rokem +2

    Thank you for this great video. How can we format the text to include bold font and embedded links? Thank you again.

  • @arunrojas8942
    @arunrojas8942 Před 2 lety

    nice video , and which software you used to compress videos

  • @mdshahadatkabir8329
    @mdshahadatkabir8329 Před 3 lety

    After so long was waiting for ur video so long

  • @jeremiahope9173
    @jeremiahope9173 Před 2 lety +1

    Nice video
    I would like if a video for transportation bot is made for telegram with python.

  • @kailashrajendran3580
    @kailashrajendran3580 Před 3 lety +3

    A huge thanks from INDIA🌟

  • @shantanubindhani1622
    @shantanubindhani1622 Před 3 lety +20

    That moment when he said, " and of course coding's really fun, so your.... Commands really matter here"😂

    • @dhanushkgowda8570
      @dhanushkgowda8570 Před 2 lety

      thats what make this tutorial good, it shows coding is not always rainbows and sunshine xD

  • @29namankumar29
    @29namankumar29 Před 3 lety +8

    It's been a while YK!

  • @zeepranabesh911
    @zeepranabesh911 Před 3 lety +1

    I want to ask you an irrelevant question
    For app development
    What should I use
    java +android studio
    Swift +xcode
    react native

  • @bhaskarthouti1482
    @bhaskarthouti1482 Před 3 lety

    This is really Awesome
    Quick thing, what software you have used to create this video? how we can show the coding screen and in bottom right your visible.

  • @jamesj2869
    @jamesj2869 Před 2 lety +1

    Thanks for the tutorial, in case, is there any tutorial to set '+/-Post Messages' of a telegram bot in a channel?

  • @krishnanagpal807
    @krishnanagpal807 Před 3 lety

    Great Cs dojo , please a video on reddit bot and a chatbot

  • @nelanitharanga311
    @nelanitharanga311 Před 2 lety

    Very useful video Thank You very much for this Video

  • @aldrikshmo
    @aldrikshmo Před 2 lety

    Thank you that was very useful 👌

  • @ADM_RAMconsumingfox
    @ADM_RAMconsumingfox Před 2 lety

    Finally, the good tutorial out of everything out there how to make a bot. They all just make a bot not the code. I want to make gamebot, is there any tutorial?

  • @SanjayKumar-xn2xm
    @SanjayKumar-xn2xm Před 3 lety +1

    finally you remember your youtube channel padsword

  • @sanjaymehta5872
    @sanjaymehta5872 Před 3 lety +4

    This is really cool, thank you! How would one create a TG bot that would return data based on that user? Example billing information for a tenant or customer by linking their TG username/number. Thanks once again, keep safe!

    • @bo6344
      @bo6344 Před 2 lety +4

      AHAHAHAHHA Wow you clowns don't even TRY to hide your exploitive ways anymore!

    • @choicoinchovui
      @choicoinchovui Před 2 lety

      @@bo6344 yeah since we living on an open source world protect your own stuff is somethings ppl should be doing rather than believe in the "protector" stuff

  • @anandamahaputra
    @anandamahaputra Před 2 lety

    Thaks Sir for your tutorial : ) !!!

  • @reproog3003
    @reproog3003 Před 2 lety

    Hey, can you make a video about the ReplyKeyboardMarkup. (How to use the function, how to process the requests from it etc.)

  • @mimosveta
    @mimosveta Před 3 lety

    soooo, do I have to create "a new channel" for a bot, or can a bot be added to existing channel? cause I don't see how to find an API key for existing channel ...
    okay, figured it out. once you create the bot, open it, and click on ellipsis and select "add to group". this will not offer regular channels, but will offer you chat groups so you can add bots to those

  • @diablolaggo870
    @diablolaggo870 Před 3 lety

    More telegram bot stuff!! Like fun cmds and a playlist!! Plssssplsss

  • @bijayghosh6128
    @bijayghosh6128 Před 2 lety +1

    I have done exactly as you doing, but in sublime text3, How to set the environment, for this code to work

  • @wilmenls
    @wilmenls Před 2 lety

    great tutorial, thank you very much

  • @mdjahangiralam1331
    @mdjahangiralam1331 Před 3 lety

    you should make a video on how teenagers can start learning coding.

  • @enlightmentnurturewithsusm9387

    unable to add .env file , showing env files are depricated

    • @leetcodemermaid9804
      @leetcodemermaid9804 Před 2 lety

      you can find it in the left bar with a lock icon and add your API_KEY and key there

    • @nnk0o
      @nnk0o Před 2 lety

      @@leetcodemermaid9804
      thx bro

    • @nnk0o
      @nnk0o Před 2 lety

      @@leetcodemermaid9804 4:51
      the code still?

  • @2perspektiva
    @2perspektiva Před 2 lety

    So, how to send alert? (that you have mention at beginning)

  • @thetransferaccount4586

    very straightforward

  • @mokus603
    @mokus603 Před 3 lety +8

    "it's not tea, i'm not sentdex" what savage 😂

  • @pranavkashyap8402
    @pranavkashyap8402 Před 2 lety

    waiting for your next video.

  • @termile510
    @termile510 Před 3 lety

    Looking good YK!

  • @Deepak-jv2ql
    @Deepak-jv2ql Před 3 lety

    Are the professional certicates from google, IBM are accepted for visa instead of a CS degree? For software engineer job

  • @manoramapatra8091
    @manoramapatra8091 Před 3 lety

    Interesting... Nice sir

  • @thedriper2983
    @thedriper2983 Před 3 lety +4

    Nice Job!

  • @iKh4ever
    @iKh4ever Před 2 lety

    So nice explain brother.

  • @ouailnadzi832
    @ouailnadzi832 Před 3 lety

    Hello can you explain to us if we can creat python code that can help to do technical analytics and fundamental analytics to get decision of selling or buying in stocks market or forex market

  • @omgtoinie
    @omgtoinie Před 2 lety

    How difficult is it to create a bot that looks at the content of a message? Copies a part from it? And adds a command to the line and the send that?

  • @NormanAvila
    @NormanAvila Před 3 lety +1

    Great video.. Will like to see how to alert a group based on some condition so the user does not need to run a command but instead just receive a notification ?

  • @MohitKumar-nx2um
    @MohitKumar-nx2um Před 3 lety

    Make a video on your gadgets . Please suggest some usful gadgets.....love from india

  • @duhmi
    @duhmi Před 2 lety +1

    Could you give us a toturial about creating bottons in telegram bot

  • @natansun
    @natansun Před 3 lety

    I'd like the bot send me a message whenever there's a new post of some forum.
    What's the right way to set it up without passing a command to the bot?

  • @kryptoabi
    @kryptoabi Před rokem +1

    AttributeError: 'TeleBot' object has no attribute 'message_handler' although I install telebot or pytelegrambotapi

  • @umamaheshbhasuru1512
    @umamaheshbhasuru1512 Před 3 lety +1

    Good yk really superb

  • @PIVOT112
    @PIVOT112 Před 3 lety +2

    Thank you dojo...

  • @INDOGFX
    @INDOGFX Před 2 lety +2

    i can't create the .env file in repl it...

  • @user-ql2zw3bg1l
    @user-ql2zw3bg1l Před 3 lety +2

    Hey Thanks for the video , i have problem with the method bot.polling my terminal is mad
    i would love some help , Thanks for helpers

  • @hmrajesh3
    @hmrajesh3 Před 3 lety +2

    Can you please make a part 2 of this ....🙂. Please include how to connect with Google spreed sheet data as well.
    Thank you

  • @arladiesworld786
    @arladiesworld786 Před rokem +1

    Bro I am using pyroid 3 to run my bot but it doesn't run. I just type 11strings since it shows no module found at string 31. What I can do?

  • @ab-lx6ke
    @ab-lx6ke Před 3 lety

    日本人なんですね!
    今高校留学の最後の年です。プログラミングは全くわかりませんがこれから頑張ります

  • @codinglearner3261
    @codinglearner3261 Před 3 lety

    Well, it's okay if you dont... I mean, just do it if you have the time..
    It would be very useful!

  • @mattgwyer4888
    @mattgwyer4888 Před 2 lety +7

    Replit has gotten rid of .env files and went to storing secret info on the environment to the 'secrets' tab. How do I run the API key into my program with this new change?
    thx

    • @leehanglow4439
      @leehanglow4439 Před 2 lety

      In the secret tab, the "key" will be the variable name and the value will be your API key.
      In main.py, the way to run will still be the same

    • @MrSatoV
      @MrSatoV Před 2 lety

      @@leehanglow4439 I haven't tested yet, but when I create that secret and then use the "insert" button it says "my_secret = os.environ['API_KEY']". Do I just use code as is or use what replit inserts? (delete the insert)

  • @terminalcreeds443
    @terminalcreeds443 Před 3 lety

    how would i create a button in the bot and assign the button to some sort of function?

  • @albertluna1001
    @albertluna1001 Před 3 lety +2

    Hey can someone send me the documentation of this API please. Thanks!!

  • @user-nv2ff6fg2u
    @user-nv2ff6fg2u Před 2 lety

    can't quite figure it out...why wouldn't you use a regular hosting instead of replit?

  • @aa-mn5th
    @aa-mn5th Před 2 lety +1

    the code stops working after a time. it says connection error and so on even if i start it on replit always on. How can i fix that?

  • @witzcode
    @witzcode Před rokem

    Thanks for the helpful video. But I want to create Questions-Answer related Telegram Bot. Can you make another video for it? And, again thank you for this

  • @shusol.o
    @shusol.o Před 2 lety +1

    Hey can you make a tutorial on making a telegram game bot? I'm trying to do one bit I don't know how to make coding for custom choices like players' names and everything else

  • @someoneattack3626
    @someoneattack3626 Před 2 lety

    Any idea how to monitor price of a certain stock or coin by tg bot or discord ?
    I want to extract data directly from the exchange

  • @zx3215
    @zx3215 Před 2 lety +4

    Thank you for the tutorial!
    Do I get it right - when the code is not running then the bot is not working? If i'm programming it off a local environment - does this mean I have to keep my laptop running 24/7 for the bot to work? How is it done in real life so the bot works all the time?

    • @meowmaple
      @meowmaple Před rokem +1

      it is deployed to cloud platforms like AWS or Heroku, which will run ur code 24/7

    • @zx3215
      @zx3215 Před rokem

      @@meowmaple thank you! Now I have some idea where to look for more info.

  • @keertilata20
    @keertilata20 Před 3 lety

    Cs dojo is back!!!

  • @hierkonnteihrewerbungstehe8008

    How can i read a message and save the text in a string?

  • @joshitoshi9835
    @joshitoshi9835 Před 2 lety

    Nice info. please create a series of videos how to convert python script to tg bot, like i have a python script which does rename files on google drive, so how to convert it to tg bot? Also another script which does ffmpeg on gdrive files

  • @gamer99163
    @gamer99163 Před 2 lety +1

    Hello, please help me, how can I save a user input and then outputs it later on

  • @8followsonik
    @8followsonik Před 3 lety +1

    It's fine to see, but how to create a telegram bot with Python w/o any libraries?

  • @rintoantony5449
    @rintoantony5449 Před 2 lety

    How do i go about doing this if i want a command to be trigerred by a message sent in another channel? can I add the bot to channel and take those messages as command?

  • @kartiksingh3154
    @kartiksingh3154 Před 3 lety

    can we get some sort of graph work also from this bot?

  • @Elavarasu.M
    @Elavarasu.M Před 3 lety

    We want CS beginners tutorials

  • @ivanyurchenko4091
    @ivanyurchenko4091 Před 2 lety

    thank you for vide. How to keep running my bot every time? When i stop it in Replit, then it does not work.

  • @kalpeshrawal7661
    @kalpeshrawal7661 Před 2 lety

    Could you please share how can we read incoming messages of more then one channels continuosly In which I'm just joined as a member. ?

  • @user-ow9sc4tv2r
    @user-ow9sc4tv2r Před 3 lety +4

    When I type .env for the new file it says 'you cannot create .env files anymore, checkout the environment variable sidebar' can you please tell me what to do

    • @hrishikeshbharati9419
      @hrishikeshbharati9419 Před 3 lety +5

      Just click on the lock icon on the left side of the screen, it is called Secrets (Environment variables), you can add name for your api key (let's say API_KEY) and then paste the actual key down there. In the next step, it also tells you how to get the key and store it in a variable(you can rename the variable however you wish). That's how you do it, .env files are not supported anymore.

    • @user-ow9sc4tv2r
      @user-ow9sc4tv2r Před 3 lety +1

      @@hrishikeshbharati9419 oh thanks for explaining

  • @Captstonebookkeepingservices

    Anyone else have the issue of trying to create the .env file and it doesn’t work?

    • @Elvis.D99
      @Elvis.D99 Před 8 měsíci

      exactly. did you fix that issue?

  • @harshraj6966
    @harshraj6966 Před 3 lety

    i know the roadmap for web development
    app development (android/ios)
    but what is the roadmap for desktop app/software deveelopment?
    ?
    ?
    ?