Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram BOT - how to add icon?

How do you add an icon to the telegram bot?

example command:

/stats

response code:

var response = '';
response += '*Pool*\n';
response += 'Hashrate: ' + poolHashrate + '\n';
response += 'Connected Miners: ' + poolMiners + '\n';
response += 'Active Workers: ' + poolWorkers + '\n';
response += 'Blocks Found: ' + poolBlocks + '\n';
response += 'Last Block: ' + poolLastBlock + '\n';
response += 'Current Effort: ' + currentEffort + '\n';
response += '\n';
response += '*Network*\n';
response += 'Hashrate: ' + networkHashrate + '\n';
response += 'Difficulty: ' + networkDiff + '\n';
response += 'Block Height: ' + networkHeight + '\n';
response += 'Block Found: ' + networkLastBlock + '\n';
response += 'Last Reward: ' + networkLastReward;
return bot.sendMessage(chatId, response, { parse_mode: 'Markdown' });
like image 431
gosdor xda Avatar asked Nov 15 '25 06:11

gosdor xda


1 Answers

  1. talk to @BotFather
  2. type /setuserpic
  3. select your bot from the list (or type its name)
  4. use send media to upload the image (must be at least 150x150)
like image 129
cielke Avatar answered Nov 17 '25 19:11

cielke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!