diff --git a/package.json b/package.json index 32f07e85..30bf8206 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grammyjs/i18n", - "version": "0.5.0", + "version": "0.5.1", "description": "Internationalization middleware for grammY and Telegraf", "keywords": [ "telegram bot", diff --git a/source/i18n.ts b/source/i18n.ts index ed1edaea..eaeacab8 100644 --- a/source/i18n.ts +++ b/source/i18n.ts @@ -14,7 +14,7 @@ const compile = require('compile-template'); interface MinimalMiddlewareContext { readonly from?: { readonly language_code?: string; - }; + } | undefined; readonly chat: unknown; readonly i18n: I18nContext;