This patch adds html and markdown formatting for messages.
varhtmlText='<i>italic</i> and <b>bold</b>';varmarkdownText='_italic_ and *bold*';// new way
bot.send(newMessage().html(htmlText).to(chat_id));bot.send(newMessage().markdown(markdownText).to(chat_id));bot.send(newMessage().text(htmlText).html().to(chat_id));bot.send(newMessage().text(markdownText).markdown().to(chat_id));// old way
bot.send(newMessage({parse_mode:'HTML'}).text(htmlText).to(chat_id));bot.send(newMessage({parse_mode:'Markdown'}).text(markdownText).to(chat_id));
This patch adds html and markdown formatting for messages.
``` javascript
var htmlText = '<i>italic</i> and <b>bold</b>';
var markdownText = '_italic_ and *bold*';
// new way
bot.send(new Message().html(htmlText).to(chat_id));
bot.send(new Message().markdown(markdownText).to(chat_id));
bot.send(new Message().text(htmlText).html().to(chat_id));
bot.send(new Message().text(markdownText).markdown().to(chat_id));
// old way
bot.send(new Message({parse_mode:'HTML'}).text(htmlText).to(chat_id));
bot.send(new Message({parse_mode:'Markdown'}).text(markdownText).to(chat_id));
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This patch adds html and markdown formatting for messages.
@axfree: Hey! Thank you for the pull-request! published to npm
telegram-api@0.6.1