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 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 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 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...
I have a problem concerning a Telegram bot I am currently working on. I get messages from users in the following format:     update { update_id: 82618016,    message:     { message_id: 363,       from: { id: 22303518, first_name: 'Steve', lan...
I am trying to use telegram node modules (telegram-js, telegram-mt-node, telegram-tl-node) inside webpack on a client web app.  currently I am getting this error:  Uncaught ReferenceError: require is not defined   the error is pointing to this line:...
how to check if Computer\HKEY_CURRENT_USER\Software\Classes\tg exists or not by Javascript (Supported by All Browsers)....
I want to include the Telegram login widget in my Angular application. For this, you have to include the following script:  <script async src="https://telegram.org/js/telegram-widget.js?5"   data-telegram-login="bot_name" data-size...
I am trying to associate buttons with their subsequent display. I want a different answer depending on the button. like "if msg.data is equal to something, something is displayed. help with this, please. it displays correctly in the console when...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.