I have the following code:    inline_keyboard: [     [{ text: 'Authorize', callback_data: '1', url: 'https://google.com' }],   ],   When I press the button that comes out this code, the resulting url is modified to:   tg://uns...
I have started to write bot logic for telegram by using this module  I can create simple question and answer logic like this:  bot.onText(/\/start/, function(msg, match){   bot.sendMessage(msg.chat.id, "Hello this is great bot"); });   When u...
I am using Node.js telegram-bot-api.  Idea:   Show a custom keyboard with one button - "Share my phone number". When user clicks this button, contact should be sent and button should be removed from screen.   Here is a code I am using right n...
I created an application which display a survey wizard to the user. When the user launch the /start command, I call the AddProject:  const Telegraf = require('telegraf'); const bot = new Telegraf(process.env.BOT_TOKEN); const session = requir...
I'm trying to obtain all users of a telegram group, I see the method getChatAdministrators, but I think the API doesn't have a method for obtaining all members.  I'm using telegram-bot-api of nodejs...
I want to be able to return the content of these variables by using regular expressions.  'use strict'  const Telegraf = require('telegraf') const fs = require('fs')  var ar1 = fs.readFileSync('folder/ar1.txt').toStrin...
I want to know hot to read and save into a variable the text of a button that was clicked by a user who chat with my telegram bot.  PROBLEM:   I have this piece of code that helps me to take the webhook response for my bot.  $getupdates = file_get_co...
I am writing a very simple telegram-bot using the telegraf bot framework. So far it replies to some simple commands using .hears and .on methods, everything works fine so far.  Now I implemented another .hears method which is waiting for the string M...
Currently bot has option to show welcome messages for the new new_chat_members which shows for each member. There are plenty of welcome messages staying in group due to the high volume of new members. iIt is bit irritating for the current users showi...
I'm using node-telegram-bot-api. I would have multiple InlineKeyboardButton and bind them with different CallbackQuery throw answerCallbackQuery method. Can you show me an example please? Thank you....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.