NodeRSSBot
NodeRSSBot copied to clipboard
build(deps): bump telegraf from 4.9.2 to 4.10.0
Bumps telegraf from 4.9.2 to 4.10.0.
Release notes
Sourced from telegraf's releases.
v4.10.0
Brand new formatting helpers! No more awkward escaping.
import { fmt, bold, italics, mention } from "telegraf/format";
ctx.reply(fmt
Ground control to ${mention("Major Tom", 10000000)} ${bold
Lock your Soyuz hatch} and ${italic
put your helmet on} — ${link("David Bowie", "https://en.wikipedia.org/wiki/David_Bowie")}
);This also just works with captions!
ctx.replyWithPhoto( file.id, { caption: fmt`${bold`File name:`} ${file.name}` }, );
Added Input helpers to create the InputFile object.
import { Telegraf, Input } from "telegraf"; const bot = new Telegraf(token);
bot.telegram.sendVideo(chatId, Input.fromLocalFile("../assets/cats.mp4"));
bot.telegram.sendDocument(chatId, Input.fromBuffer(buf));
bot.command("cat", ctx => { ctx.sendPhoto(Input.fromURL("https://funny-cats.example/cats.jpg")) });
This helps clear the confusion many users have about InputFile.
Deprecated
ctx.replyWithMarkdown
; prefer MarkdownV2 as Telegram recommends.Deprecated
ctx.replyWithChatAction
; use identical methodctx.sendChatAction
instead.
bot.launch()
's webhook options now acceptscertificate
for self-signed certs.Fix bot crashes if
updateHandler
throws (#1709)
Commits
3cbcd8e
ver: v4.10.0dfdab5d
merge: format helpers (#1690) from telegraf/feat-format-helpers9565a99
fix(fmt): caption needs caption_entitiesdbd83ae
Fix #170948cac42
Prevent DoS viasecretToken
; closes #1708e6eeb1c
chore(docs): add hookPath, secretToken to launch()7907a7a
DeprecateRouter
05cb922
fix(format): fmtCaption must not override parse_mode57a1814
fix(format): support editMessage*eccef8b
fix(format): remove extraneous toString()- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)