Skip to content

Commit

Permalink
feat(telegram): mark event input as always non-null (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe authored Feb 23, 2025
1 parent b87f3db commit ea5a002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/telegram/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type ParamCase<S extends string> =
: S

type TelegramEvents<C extends Context = Context> = {
[T in Exclude<keyof Telegram.Update, 'update_id'> as `telegram/${ParamCase<T>}`]: (input: Telegram.Update[T], bot: TelegramBot<C>) => void
[T in Exclude<keyof Telegram.Update, 'update_id'> as `telegram/${ParamCase<T>}`]: (input: NonNullable<Telegram.Update[T]>, bot: TelegramBot<C>) => void
}

declare module '@satorijs/core' {
Expand Down

0 comments on commit ea5a002

Please sign in to comment.