Category : telegram-bot

I’d like to know if there’s a way to trigger a click on a inlineKeyboardButton I receive from a bot and get the hidden text. I receive something like this "content": { "_": "messageText", "text": { "_": "formattedText", "text": "████", "entities": [] } }, "replyMarkup": { "_": "replyMarkupInlineKeyboard", "rows": [ [ { "_": "inlineKeyboardButton", "text": ..

Read more

How to increment my global variable ‘currentstep’ in Google App Script. The third if statement, I used currentstep++ but it doesn’t increase as it stayed at 2. Furthermore, I had tried currentstep += 1; and currentstep = currentstep + 1; Both methods don’t work as well. function check_command(data){ var text = data.message.text; if(text == "/start" ..

Read more

currently my code is able to run till currentstep = ‘2’. I have updated the currentstep = ‘3’ in my survey(data) which will be able to execute my xD(data). However, the code isn’t updated to ‘3’ to run. function check_command(data){ var text = data.message.text; if(text == "/start" || text == "/start"){ currentstep = ‘1’; return; ..

Read more

i need some help, am trying to send message to telegram bot but things are not working out for me, am just trying to archive what i want to do. am new to jquery and javascript below is what i tried <!DOCTYPE html> <html lang="en"> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <script> $(document).ready(function () { $("#add_button").click(function(event) { ..

Read more

I’ve built a telegram bot using guidance from this video: https://www.youtube.com/watch?v=mKSXd_od4Lg&t=348s Is there any way to edit the sendText function such that I could allow the bot to send a message at a set time? function sendText(id,text){ var url = telegramUrl + “/sendMessage?chat_id=” + id + “&text=” + text; var response = UrlFetchApp.fetch(url); } Thank ..

Read more