telegram-bot-getids
telegram-bot-getids copied to clipboard
Bump telegraf from 4.8.6 to 4.10.0
Bumps telegraf from 4.8.6 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)v4.9.2
- Fixed bad shorthand for
ctx.replyWithVideo
(#1687)v4.9.1
- Updated typegram to v3.11.0.
v4.9.0
You can now follow Telegraf releases on Telegram
... (truncated)
Commits
- See full diff 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)