This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
const apiurl = 'https://api.telegram.org/bot'; | |
const serveraddress = 'https://yourdomain.com'; | |
const tokens = ['3445345345:454545-iY_wE6wj_aKDJwKLXk', '453454545:gffgfgzbcfjhsdbflhjdsfvhjlvdsf']; | |
//set webhook | |
//you can make this as call as way you want. | |
webhookURL(tokens, 50, 8443, 'tgram'); | |
async function webhookURL(bot_tokens, max_connections, port, from) { |