Telegram Bot Tutorial - 2 - Webhook & GmailApp

Поділитися
Вставка
  • Опубліковано 3 лис 2017
  • Telegram Bot Tutorial - 2 - Webhook & GmailApp

КОМЕНТАРІ • 52

  • @AmeeliaK
    @AmeeliaK 5 років тому +1

    This is sooo cool! Your tutorial is awesome. Not to fast, not to slow, and I'm learning Telegram bots and Google App Script at the same time.

  • @gchannel8524
    @gchannel8524 6 років тому

    good job thanks for the tutorials

  • @bikrampurkait3786
    @bikrampurkait3786 3 місяці тому

    Thanks sir.

  • @user-rk1gi7oj9q
    @user-rk1gi7oj9q 5 років тому

    Thanks a lot!

  • @alfaguria
    @alfaguria 4 роки тому

    Hello brother,
    I need a program to post content from a column, cell by cell at a particular interval.
    I want after every 1 minutes content from column A of the excel sheet get posted in telegram channel whenever the script is run.
    For example after running the script at the content get posted as in such a manner from cells of the sheet.
    Time= 1 min
    Post message from Cell A1
    Time= 2 min
    Post message from Cell A2
    .
    .
    .
    and so on
    Can you help me in this

  • @squat2473
    @squat2473 6 років тому +3

    [17-12-29 23:52:20:888 ICT] {"ok":true,"result":true,"description":"Webhook is already deleted"} Got that log when setting the webhook part

    • @bikrampurkait3786
      @bikrampurkait3786 3 місяці тому

      var response = UrlFetchApp.fetch(url + "/setWebhook?url=" + webAppUrl);
      Previously, it was missing the = sign after url, which resulted in an incorrect URL construction.

  • @mimocrocodile5069
    @mimocrocodile5069 4 роки тому

    Hi Wim. Very useful video. Thanks. But I ran into a problem. Function doPost is never executed. How can check, what is the reason? (Sorry, English is not my native language). How can I check if my bot send POST request? And what is in POST request?

  • @meowbiich1689
    @meowbiich1689 4 роки тому +1

    Hi Wim, i'm followed every instructions until the 5 video you've uploaded.
    im just curious, is it possible if inputing some data to spreadsheet from telegram without getting email updates?

  • @agrikridanto1172
    @agrikridanto1172 5 років тому

    Nice tutorial,
    If i have php project ('x') how to set up webhook ? Inside the project 'x' ? Or maybe i can set up in another project 'y' (in the same server of project 'x' )
    Thanks

  • @mimocrocodile5069
    @mimocrocodile5069 4 роки тому

    How about SSL certificate? Does your bot work without it?

  • @mosebonacchi2392
    @mosebonacchi2392 2 роки тому

    Hi Wim's thank you for this tutorial, but I have an explanation to ask you, that I can't go on even if I don't know English well.
    It is not clear to me what url you put in the webAppUrl variable, between the first and the second video this variable appeared and I cannot understand where you got that link.
    Thanks for your help
    good job

  • @dhanushalakshan2595
    @dhanushalakshan2595 4 роки тому

    is it necessary to use gmail app for that?

  • @sanjeevdosi4983
    @sanjeevdosi4983 3 роки тому +1

    Hi Wim though I have gone exactly as per your tutorial I cannot proceed ahead of 1:55 where you are getting the Hello message with the other values at 1:56. I am using mozilla firefox and not chrome. Can you please suggest a way out.

    • @sebastianomarchesini
      @sebastianomarchesini 2 роки тому

      Same problem. did you solve it ?

    • @sanjeevdosi4983
      @sanjeevdosi4983 2 роки тому

      @@sebastianomarchesini Couldn't move ahead. Sorry.

    • @sebastianomarchesini
      @sebastianomarchesini 2 роки тому

      @@sanjeevdosi4983 I use a webhook and after is working.
      Try with other videos ;)
      ua-cam.com/video/pV1Jt3fjcq8/v-deo.html

    • @sanjeevdosi4983
      @sanjeevdosi4983 2 роки тому

      @@sebastianomarchesini Thanks a lot Buddy. Will revert after having a look.

  • @adithiyavikash4092
    @adithiyavikash4092 6 років тому +1

    At 0:54 I get a "Sorry unable to open a file at this time" message instead of the error message u got. could you help me

    • @wimdenherder
      @wimdenherder 6 років тому +1

      This is a Google bug!
      The Web App address could be something like:
      script.google.com/macros/u/0/s/blablabalblajo0s_CNFeUaEMlbsfLl69-GB/exec
      When you're logged in into multiple gmail accounts. (it adds u/0/ or something simliar)
      Then use:
      script.google.com/macros/s/blablablaMnSP14Wbfmkfjo0s_CNFeUaEMlbsfLl69-GB/exec
      and optionally run setWebHook again.

    • @deathempire70
      @deathempire70 6 років тому +1

      NICE was looking all over for this

  • @titorexpress1464
    @titorexpress1464 6 років тому

    can't use getUpdates method while webhook is active

    • @akashsharm420
      @akashsharm420 6 років тому +1

      You probably once called set_webhook by accident. This will configure a web hook for your bot. To delete the webhook, you can either call bot.set_webhook() (no arguments means that the webhook will be removed), or visit this url: api.telegram.org/bot/setWebhook?url=
      Leaving the "url" parameter empty will remove the webhook as well. bot.set_webhook() simply calls this URL for you :)

  • @alexeyev1ch620
    @alexeyev1ch620 5 років тому +2

    Hi man, where i can take my var webAppUrl???

    • @Blueloony
      @Blueloony 5 років тому

      The url is the URL given when you publish the app

  • @aleksandramalakutsko401
    @aleksandramalakutsko401 3 роки тому

    OMG!!!! its work!!

  • @VirgoINFP
    @VirgoINFP 2 роки тому

    Ran into several issues:
    1. The deployment part does not work for me on chrome . I copied every lines of codes. But it works on microsoft edge.
    2. Did not received emails after sending message to bot. Probably my webhook wasn't set up right. When I run the setWebhook function, the message I get is {"ok":true,"result":true,"description":"Webhook is already deleted"}

    • @user-jn5tv8ji9b
      @user-jn5tv8ji9b Рік тому

      Same! Have you gotten a solution for that when you coded?

    • @bikrampurkait3786
      @bikrampurkait3786 3 місяці тому

      var response = UrlFetchApp.fetch(url + "/setWebhook?url=" + webAppUrl);
      Previously, it was missing the = sign after url, which resulted in an incorrect URL construction.

  • @pujashaw8706
    @pujashaw8706 6 років тому

    How do we get the webApp url

  • @tyr731
    @tyr731 2 роки тому

    Dude email code doesn't work, please fix your code

  • @hermancamacho4230
    @hermancamacho4230 3 роки тому +1

    Wim's , I don't know how you got "var webAppUrl = "script.google.com/macros/s/AKfycba............"

  • @titorexpress1464
    @titorexpress1464 6 років тому +1

    having problems with the e-mail updates... the message isn't coming. what's wrong!?

    • @akashsharm420
      @akashsharm420 6 років тому

      Same problem did you find any soltuion

    • @whasuklee
      @whasuklee 6 років тому +1

      It's quite been a long time tho, but I had the same issue. When you deploy the web, set the project version "New." Or, make sure you set your webhook properly and permissions.

    • @c0mrade69
      @c0mrade69 5 років тому +1

      same problem. tried everything :(( pleease help

    • @DomnulFisk1
      @DomnulFisk1 5 років тому +2

      Setting the project version as "New" fixed it for me

    • @MrMigueldf
      @MrMigueldf 5 років тому

      The code you have is the same as the video?

  • @AakashGuptaAaky
    @AakashGuptaAaky 2 роки тому

    Hi there.. I am not getting any email when i am sending input to bot, working on new updated app script.. Please help.