PhilPinsdorf / FhAachenMensaBot

A small Telegram Bot that will send you a Message with the Canteen Meals of the day.
MIT License
10 stars 3 forks source link

Bump telegraf from 4.10.0 to 4.11.2 #18

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps telegraf from 4.10.0 to 4.11.2.

Release notes

Sourced from telegraf's releases.

v4.11.2

  • Fixed types for sendMediaGroup to accept StreamFile.
  • Only send message_thread_id if is_topic_message is true. Telegram sends message_thread_id for reply messages, even if the group doesn't have topics. This caused the bot to throw when ctx.reply was used against reply messages in non-forums.

v4.11.1

  • Fixed an issue where TypeScript was not able to import "telegraf/filters". Top-level filters.{js|d.ts} were missing in package.json "files" array.

v4.11.0

  • Updated to Typegram 4.1.0 and added the following new methods to Telegram class:
    • createForumTopic
    • editForumTopic
    • closeForumTopic
    • reopenForumTopic
    • deleteForumTopic
    • unpinAllForumTopicMessages
    • getForumTopicIconStickers
  • Added new method shorthands to Context; add message_thread_id implicitly to Context::send* methods.

We've added a new powerful feature called filters! Here's how to use them.

// import our filters
import { message, editedMessage, channelPost, editedChannelPost, callbackQuery } from "telegraf/filters";
// you can also use require, like this:
// const { message, editedMessage, channelPost, editedChannelPost, callbackQuery } = require("telegraf/filters");

const bot = new Telegraf(token);

bot.on(message("text"), ctx => { // this is a text message update // ctx.message.text });

bot.on(channelPost("video"), ctx => { // this is a video channel post update // ctx.channelPost.video });

bot.on(callbackQuery("game_short_name"), ctx => { </tr></table>

... (truncated)

Commits
  • 0fb95cd ver: 4.11.2
  • 7234dee fix: message_thread_id only if is_topic_message
  • 73c6f7d fix: MediaGroup did not accept StreamFile
  • a14104c ver: v4.11.1
  • 96e5a47 fix: root filters.* were not published
  • e5f3dbc ver: v4.11.0
  • c528d44 feat: make polling errors catchable
  • 6e081dc feat(fmt): use template substitution instead of +=
  • d1d223e merge: #1733 from feat-api-6.3
  • a178576 chore: add release notes
  • 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)