Skip to content

Commit

Permalink
fix: Update threadId property name to messageThreadId
Browse files Browse the repository at this point in the history
  • Loading branch information
oevery committed Jul 12, 2024
1 parent 0518812 commit 74136e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { UndefinedPartialTelegramOptions } from '~/types'
export const defaultTelegramOptions: UndefinedPartialTelegramOptions = {
token: undefined,
chatId: undefined,
threadId: undefined,
messageThreadId: undefined,
parseMode: undefined,
linkPreviewOptions: {
isDisabled: undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/schema/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { TelegramOptions } from '~/types'
export const telegramSchema: z.ZodType<TelegramOptions> = z.object({
token: z.string(),
chatId: z.union([z.string(), z.number()]),
threadId: z.number().optional(),
messageThreadId: z.number().optional(),
parseMode: z.union([z.literal('MarkdownV2'), z.literal('HTML'), z.literal('Markdown')]).optional(),
linkPreviewOptions: z.object({
isDisabled: z.boolean().optional(),
Expand Down
2 changes: 1 addition & 1 deletion src/types/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface TelegramOptions {
* @example
* 1
*/
threadId?: number
messageThreadId?: number
/**
* Telegram message parse mode
* @url https://core.telegram.org/bots/api#formatting-options
Expand Down

0 comments on commit 74136e3

Please sign in to comment.