Inline button for Telegram channel
var nodeTelegramBotApi = require("node-telegram-bot-api")
/*************************************
settings
*************************************/
// step 1 : create your bot a get your token
// go to https://core.telegram.org/bots to find how
var token = '5919507681:AAEFIGXdjF8zTx7Xey4iPjqL-vo70s48xf8'; // <= replace with yours
// step 2 : add your robot as admin to your channel
// and set your channel here , more details
// https://stackoverflow.com/questions/33126743/how-do-i-add-my-bot-to-a-channel
var chatId = '-1001723412485'; // <= replace with yours
/*************************************
Message content
*************************************/
// here you can set your message
// in this example you find list of accepted html markdown
var html = 'Restocked β
β
\n\n'+
'π€π€π€π€π€π€π€π€π€π€\n\n'+
'<pre>Non vbv cc, Linkable cc, Buy with warranty, refund or replacement.</pre>\n\n'+
'99% Hit Guarantee π₯β
';
/*************************************
Set buttons
*************************************/
var buttons = [
[
{"text": "NON VBV CC", "url": "https://nullbite.net/index.php/product/non-vbv-cc/"},
{"text": "Linkable CC", "url": "https://nullbite.net/index.php/product/linkable-debits/"}
],
[
{"text": "π OTP SPOOFING BOT SOURCE CODE π", "url": "https://nullbite.net/index.php/product/spoofing-otp-bot-source-code/"}
]
];
/*************************************
Create the bot
*************************************/
bot = new nodeTelegramBotApi(token, {polling: true});
/*************************************
Send the message
*************************************/
bot.sendMessage(chatId, html,
{
parse_mode: "HTML",
disable_web_page_preview:true,
"reply_markup": {
"inline_keyboard": buttons
}
}
);
/*************************************
Send a photo
*************************************/
/**************************************************************************
if you need help or advanced feature please feel free to contact me
zied.hosni.mail@gmail.com
**************************************************************************/
no comments