How to create inline keyboards in Telegram Bot that interacts with a spreadsheet (Part 3 of 3)

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 77

  • @patricknogueiraa
    @patricknogueiraa 2 місяці тому

    Thank you very much! I was thinking of doing a spreadsheet for my expenses and this 3 part tutorial will elevate it to another level!

  • @RiseWith
    @RiseWith 4 роки тому +2

    Your way of filming your code is great! During lockdown it seems like having an office-mate who is also coding.
    Just me?
    I dig it.

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

    you've just got a new subscriber, keep up the good work Mars

  • @RaghavaIndra
    @RaghavaIndra 3 роки тому +2

    This video deserves many more views.

  • @romans5833
    @romans5833 4 роки тому +2

    I like the way you sing)))) Beautiful voice!

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

    I'm from Indonesia, I was very helped by this tutorial because it is very detailed and very easy to understand & implement. its very useful tutorial.
    I hope you always have success ..🙏🏻👍🏻

  • @עמירצין
    @עמירצין 2 роки тому

    Great series of videos, is there a way for the bot to only respond to a certified user, lets say that i can approve if a user uses a credential first time engaing the bot?

  • @agmtmtbn979
    @agmtmtbn979 Рік тому

    Hi Mars,
    Thanks for your tutorial. it worked.copied the code without any knowledge on JSON,Webhooks,JAVA/Google scripts. but having some knowledge on programming. To add some beauty to my Bot pls help me in the following case
    1.how to compare text (budget here) with out case sensitive
    2.how to format simply bold/italic for some of the words that we are sending to bot using sendMessage
    3.how to add line break for the string we are sending to bot using sendMessage.
    i googled some methods found but not success.

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

    Work like a charm!!!!
    Great tutorial & nice voice.
    Love it when you're sing......
    Respect from Indonesia.....

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

    Hey Mars great video.
    I’m working on a project on transport system for a university and i’d love it if you make a UA-cam video on transportation system using telegram and Google spreadsheet.

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

    all these three parts are really helpful. 3000 thanks!

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

    Thanks.. this tutorial help me in creating my own telegram bot.. really appreciate your effort.. but I have a quick question like... How to set self destruct timer for sent messages in google script ??

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

    HI! Thanks for the tutorial. I was able to finish this. One thing I wonder, if this is expense tracking, how would you set the budget from telegram, without editing it in the spreadsheet? Also, how to refresh the budget/expenses once we have entered a new month? without refreshing, the expenses will go on forever and we cant keep track of it monthly. Thanks for your effort!

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

      A really easy way to do that without coding is to copy paste your data for the month and move it to amother tab say April 2020. When May comes, you just delete all data for the main sheet.
      If you want to change the value of budget through telegram bot, you can program it in a way such that when you send in a keyword itd allow you to change the budget cell

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

      Otherwise you can program it in a way such that when the date column starts registering another month, it goes to a different tab in the spreadsheet

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

      @@marsescobin How we can do that? I'm newbie in this coding thing and would appreciate if you could show it :)

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

    Hey Mars, great video! I really loved it, thank you so much for doing this!
    I followed it and manged to get my bot to send back an inline keyboard. Your code works really well, but can I just ask about the sendtext function in your video? You mentioned at 9.49 that it was a better way of sending over data and that this format is just copied from your older bots. How is that data format actually generated?
    The old sendtext function was easier to understand because it was clear cut from telegram API, but this one seems to have many additional parameters that appear out of nowhere.
    Would appreciate it if you could explain how that format came about!

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

      Hi Eusebius! Check this documentation: core.telegram.org/bots/faq#how-can-i-make-requests-in-response-to-updates
      It was mentioned under "How can I make requests in response to updates?" that you can "Reply directly and give method as JSON payload in the reply"

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

    Hi, is it possible to create Daily Reminder with webhooks

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

    Hi Mars, Thank you so much for the video! I want to create a telegram bot that is able to pull the data from google spreadsheet. For example, I will enter some ID numbers, the bot will bring me other infos in that ID's row or column. I will keep updating my spreadsheet everyday so the bot will always be updated. Do you think it is possible? If yes, I will need some cheet sheet bc I have no background in coding. Thanks!

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

    T.T
    you are a queen
    tqvm
    hopefully you could share more tutorials with us

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

    Hi! I want to let you know that I've been looking for this code for quite a while (specially on how to send messages via fetchApp params). You have been a great help. Thanks!

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

      Thank you for taking the time out to let me know. Appreciate it and glad I was able to help :)

    • @techhome6362
      @techhome6362 4 роки тому +2

      @@marsescobin There's a niche for google app script based telegram bot programming here in youtube. i cant seem to find a good one.
      I highly encourage you to fill it up before people gets wiser. Haha.
      Suggested:
      > Switch inline query option on inline keyboard
      > Inline bots
      > methods
      Salamat!

    • @marsescobin
      @marsescobin  4 роки тому +2

      @@techhome6362 I will check it out. Thank you for the suggestion! haha

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

    Timely and super helpful. You go, Mars!

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

    hey, did u know how to send response from inline keyboard to google spreadsheet? because i've tried so hard but still failed

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

    Just what I needed, much appreciated!

  • @alexandrkorobkov6831
    @alexandrkorobkov6831 Рік тому

    Thank you very much! It's amazing!

    • @thenoizeeone
      @thenoizeeone Рік тому

      Do you have a copy of the code so I can just copy it in. Tried doing it verbatim myself but I keep messing up/writing it incorrectly as it goes grey after the 2nd else if. Tried solving it but failed...

    • @alexandrkorobkov6831
      @alexandrkorobkov6831 Рік тому

      @@thenoizeeone I made bot with another structure using this base

    • @thenoizeeone
      @thenoizeeone Рік тому

      @@alexandrkorobkov6831 Honestly I don't mind, might even suit me better for my use. Just having something to work with would be very appreciated

    • @keni8784
      @keni8784 Рік тому

      same, can you give me whatever code you wrote? it would help a lot, thanks!

  • @GreezzlyBear
    @GreezzlyBear 4 роки тому +2

    I did everything like on video. Webhook is working, but I still don't get callback_query((( Please help!

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

    Hi, how for me to add the budget into the spreadsheet? I saw your video showing on how to add an expenses but not showing on how to add a budget

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

    Thank you so much for theses tutorials!

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

    Thank you so much!!! Respect from Russia xD

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

      Привет, земляк) ты смог запустить этот код? У меня не отвечает на нажатие. Не могу разобраться в чём проблема...

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

    Hi Mars, for the date format, I would like to be "day/month". I tried rearranging. it doesnt seem to work. Any workaround for this ?

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

    Hey thank you for the video!!! was really appreciative. However, my bot stopped responding when I added in the inline keyboard command. May I know what is the issue? I could still enter 'apple - 5' and it would be recorded in my spreadsheet, but it just stopped responding,,, nor did the inline keyboard show up :(

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

    Hi Mars! where and how should I define postData? the term used inline 23

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

    Thank you so much! Just what I needed!

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

    Followed according to your medium article + video but it seems like the callback_query doesn't work? when i click on the button, it just has the loading icon and disappears. nothing happens. but when i delete the webhook and click on the button, the getUpdates does register the callback.. a little stuck here. does anyone know how to solve this?

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

    Hi, great content! Do you know how I can add 'negative price' in the spreadsheet. As for now if I write "Apple-+8", it will register Apple as an item and 8 as the price. As when I write "Apple--8", it will register Apple an item but without any price. Appreciate your input. Cheers

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

      Hey Mohd! Why not try using another character instead of "-" to split the text? That's probably where the confusion is coming from

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

    how can I modify specific row data?
    appendRow is filling the data below of the filled data right?
    in this case, I want to set my budget right inside of the bot.
    and in advance, actually I would like to create a new sheet (found one, seems here: developers.google.com/apps-script/reference/spreadsheet/spreadsheet#insertSheet(String)) for my next month expenses, etc, all in this bot.
    I've been trying to find from google apps script doc, but I'm not sure which one that I should take for that:
    developers.google.com/apps-script/reference/spreadsheet

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

    Can I run multiple telegram bots using 1 sheet1? I want every user to get value from a specific cell using his own bot

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

    Is there a copy of this code available somewhere? The keyboards appear but nothing happens, it seems like callback_query doesn't happen but it's hard to verify if my code matches yours.

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

      Try the medium post she based it on. No? I haven’t checked because I’m just on my phone but once I get to the computer it’s the first place I’m going.

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

    Hi! Thanks for script! Can you help with re-made your code and add editMessageText function, it will look much better, i tried but nothing worked for me

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

    hello! after rerunning webhook , it still doesnt show the inline keyboard. What could my error be??

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

    Thank you! Do you know how can we protect our bot since it will be directly accessing our spreadsheet? Since we don't want random people found out about our bot and creating garbage/accessing info about our savings ;)

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

      Hmm you can code it in a way so that it only works if the callback_query ID is equal to your ID :)

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

      @@marsescobin Hi, I've been trying this and already look around few months about this, but I still cannot get it. can you help to create about this?

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

    So pity part of the screen is cut.
    Can't see what you are typing in browser in some requests.

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

    Awesome! Thank you for sharing. ;D

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

    can you share the URL path on 13:37? your screen is not showing the URL

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

    Please help and thanks for your awesome Effort :
    In my case I hope if you can help me:
    I have a google spreadsheet which contains only customers IDs who I issued a certificate to them
    So how could I let my telegram bot reply the customer when they write their ID so if he was one of the ids in my google spreadsheet which, the bot will reply them automatically (Yes your certificate ready) if not and the customer ID was not in my google spreadsheet the bot will reply them ( No please wait your turn)
    I hope that I succeeded in communicating the information to you clearly

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

    Hi vary usefull how send Google sheets to telegram bot rows updates notification

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

    Hi. I need help. After copying your script from your old bot i still dont get any inline keyboard? How to solve it? *the code starting from function sendText(chatId, text, keyBoard) {

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

      Hello! Make sure your webhook is working by rerunning the set webhook function

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

      @@marsescobin IT WORKS!!!! THANK YOU!!!

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

      @@muhammadizwan7865 Nice! Glad to have helped!

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

    hello can you PLEASE teach me how can i make a shopping bot

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

    hey, did u know how to add timestamp. thanks

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

    very good.

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

    thanks!

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

    Great!.. Can i get the code?

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

    Please give the github link of this project

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

    Hi mars ;
    Can you help me

  • @9M2PJU
    @9M2PJU 4 роки тому

    Somebody please upload the code to github

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

    Thanks for the great tutorial. Share my solution with inline button not responding.
    function doPost(e) {
    var contents = JSON.parse(e.postData.contents);
    if (contents.callback_query) {
    var from_id = contents.callback_query.from.id;
    var data = contents.callback_query.data;
    return sendText(from_id,data);
    } else if (contents.message) {
    var id_message = contents.message.from.id;
    var keyBoard = {
    "inline_keyboard": [
    [{
    "text": "Register",
    "callback_data" : "register"
    }],
    [{
    "text": "Setup",
    "callback_data" : "setup"
    }]
    ]
    }
    return sendText(id_message,"INLINE KEYBOARD",keyBoard);
    }
    }

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

    Where's code txt

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

    hello