NodeRSSBot icon indicating copy to clipboard operation
NodeRSSBot copied to clipboard

build(deps): bump telegraf from 4.9.2 to 4.10.0

Open dependabot[bot] opened this issue 2 years ago • 0 comments

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)} ${boldLock your Soyuz hatch} and ${italicput 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 method ctx.sendChatAction instead.

  • bot.launch()'s webhook options now accepts certificate for self-signed certs.

  • Fix bot crashes if updateHandler throws (#1709)

Commits
  • 3cbcd8e ver: v4.10.0
  • dfdab5d merge: format helpers (#1690) from telegraf/feat-format-helpers
  • 9565a99 fix(fmt): caption needs caption_entities
  • dbd83ae Fix #1709
  • 48cac42 Prevent DoS via secretToken; closes #1708
  • e6eeb1c chore(docs): add hookPath, secretToken to launch()
  • 7907a7a Deprecate Router
  • 05cb922 fix(format): fmtCaption must not override parse_mode
  • 57a1814 fix(format): support editMessage*
  • eccef8b fix(format): remove extraneous toString()
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

dependabot[bot] avatar Oct 10 '22 06:10 dependabot[bot]