Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma authored Feb 23, 2025
1 parent d975817 commit 1e57709
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: Exclude<Telegram.Update[T], undefined>, 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 1e57709

Please sign in to comment.