Desplegando App

This commit is contained in:
2022-02-25 13:15:51 -05:00
parent 7e6467e75d
commit f12b75b26d
1182 changed files with 166158 additions and 1 deletions

85
node_modules/telegraf/extra.js generated vendored Normal file
View File

@@ -0,0 +1,85 @@
const Markup = require('./markup')
class Extra {
constructor (opts) {
this.load(opts)
}
load (opts = {}) {
return Object.assign(this, opts)
}
inReplyTo (messageId) {
this.reply_to_message_id = messageId
return this
}
notifications (value = true) {
this.disable_notification = !value
return this
}
webPreview (value = true) {
this.disable_web_page_preview = !value
return this
}
markup (markup) {
if (typeof markup === 'function') {
markup = markup(new Markup())
}
this.reply_markup = { ...markup }
return this
}
HTML (value = true) {
this.parse_mode = value ? 'HTML' : undefined
return this
}
markdown (value = true) {
this.parse_mode = value ? 'Markdown' : undefined
return this
}
caption (caption = '') {
this.caption = caption
return this
}
static inReplyTo (messageId) {
return new Extra().inReplyTo(messageId)
}
static notifications (value) {
return new Extra().notifications(value)
}
static webPreview (value) {
return new Extra().webPreview(value)
}
static load (opts) {
return new Extra(opts)
}
static markup (markup) {
return new Extra().markup(markup)
}
static HTML (value) {
return new Extra().HTML(value)
}
static markdown (value) {
return new Extra().markdown(value)
}
static caption (caption) {
return new Extra().caption(caption)
}
}
Extra.Markup = Markup
module.exports = Extra