Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about allowed_updates to the menu plugin page #1069

Merged
merged 7 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/docs/id/plugins/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ bot.start();
:::

> Pastikan semua menu dipasang sebelum middleware, khususnya sebelum middleware yang menggunakan data callback query.
> Selain itu, jika kamu menggunakan pengaturan khusus untuk `allowed_updates`, jangan lupa untuk menyertakan update `callback_query`-nya.

Jika kamu menggunakan [custom context type](../guide/context#memodifikasi-object-context), kamu juga bisa memasangnya ke `Menu`.

Expand Down
1 change: 1 addition & 0 deletions site/docs/plugins/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ bot.start();
:::

> Make sure that you install all menus before other middleware, especially before middleware that uses callback query data.
> Also, if you use a custom configuration for `allowed_updates`, remember to include `callback_query` updates.

Naturally, if you are using a [custom context type](../guide/context#customizing-the-context-object), you can pass it to `Menu` too.

Expand Down
1 change: 1 addition & 0 deletions site/docs/uk/plugins/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ bot.start();
:::

> Переконайтеся, що ви встановили всі меню перед іншими проміжними обробниками, особливо перед проміжними обробниками, які використовують дані запиту зворотного виклику.
> Крім того, якщо ви використовуєте власну конфігурацію для `allowed_updates`, не забудьте включити оновлення `callback_query`.

Звісно, якщо ви використовуєте [власний тип контексту](../guide/context#налаштування-обʼєкта-контексту), ви можете передати його до `Menu`.

Expand Down
1 change: 1 addition & 0 deletions site/docs/zh/plugins/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ bot.start();
:::

> 请确保在其他中间件之前安装所有菜单,特别是在使用回调查询数据的中间件之前。
> 另外,如果你对 `allowed_updates` 使用自定义配置,请记得加上 `callback_query` update。

当然,如果你使用 [自定义的上下文类型](../guide/context#定制你的上下文对象),你也可以传递给 `Menu`。

Expand Down
Loading