Context  I am using telegraf.js for more than 3 bots which run very well in plenty of groups.  Currently one of the bots needs to request for Display Picture of the user who does not have a display picture.  It works very well as expected but unfortu...
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'm using node-telegram-bot-api module and I want to get number of a link shared by my users to their Friends.    Users have a Share Status Button Is there a way to display number of a link Shared or Clicked by User's Friends in Share Status...
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 use answerInlineQuery method but i have an error:  function(inlineQuery) {         var url = API_URL + '/answerInlineQuery',             params = {};             var inline_query_id = inlineQuery.id;         var results = [{...
// command for starting request with a simple anti-spam shiet bot.command('movie', (ctx) => {            let stopSpam = findUserData(ctx);         if (stopSpam) {             ctx.reply(spammerMsg)         } else {             userData.pu...
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'm sort of building an AI for a Telegram Bot, and currently I'm trying to process the text and respond to the user almost like a human does.  For example;  "I want to register"  As a human we understand that the user wants to registe...
How to Get user location latitude and longitude via telegram bot?  Module: Link  Code:  bot.onText(/getLocation/, (msg) => {   const opts = {     reply_markup: JSON.stringify({       keyboard: [         [{text: 'Location', request_location...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.