UNPKG
@darkwolf/telegram-bot.lazy.cjs
Version:
latest (1.0.1)
1.0.1
1.0.0
Telegram Bot API
github.com/Darkwolf/node-telegram-bot
Darkwolf/node-telegram-bot
@darkwolf/telegram-bot.lazy.cjs
/
lib
/
types
/
FormattedText.js
15 lines
(11 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
Text
=
require
(
'@darkwolf/text.cjs'
)
class
FormattedText
extends
Text
{
constructor
(
text
) {
super
(text) }
clone
(
) {
return
new
FormattedText
(
this
.
value
) } }
FormattedText
.
from
=
text
=>
new
FormattedText
(text)
module
.
exports
=
FormattedText