admin管理员组文章数量:1323524
How do you add an icon to the telegram bot?
example mand:
/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' });
How do you add an icon to the telegram bot?
example mand:
/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' });
Share
Improve this question
edited Sep 14, 2018 at 1:50
Naser.Sadeghi
1,3021 gold badge15 silver badges42 bronze badges
asked Sep 13, 2018 at 14:48
gosdor xdagosdor xda
332 silver badges5 bronze badges
2
- 3 Wele to stack overflow, what do you mean by icon? Do you want to change the bot's profile icon? Explain more please. – Naser.Sadeghi Commented Sep 13, 2018 at 19:56
- if you're about icons for buttons (on the keyboard), you can use utf8-codes here a list of codes: unicode/emoji/charts/full-emoji-list.html. I agree with @Naser.Sadeghi, can you explain what do you mean on "icon"? – Danil Pyatnitsev Commented Sep 17, 2018 at 8:46
1 Answer
Reset to default 7- talk to @BotFather
- type /setuserpic
- select your bot from the list (or type its name)
- use send media to upload the image (must be at least 150x150)
本文标签: javascriptTelegram BOThow to add iconStack Overflow
版权声明:本文标题:javascript - Telegram BOT - how to add icon? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742132687a2422233.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论