D
D
denis952018-09-16 01:40:01
JavaScript
denis95, 2018-09-16 01:40:01

Telegram bot adding contacts to a group?

you need to add phone numbers to the created telegram group. there is a draft telegram bot code on the node

var TelegramBot = require('node-telegram-bot-api');

var token = '665409959:AAH6-3Vab9Q3DJZsdfsdfvY6lKEIvUJMxys';

// Create a bot that uses 'polling' to fetch new updates
var bot = new TelegramBot(token, {polling: true});

// Matches "/echo [whatever]"
bot.on('message', function(msg){
  
  
  var id=msg.from.id;
 if(msg.text=="1"){
   InlineKeyboardButton.text="ddddf";
 bot.sendMessage(id, 'ddddddd');}
  console.log(msg.text);
  
  
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question