@types/node-telegram-bot-api
Advanced tools
Comparing version 0.53.3 to 0.53.4
@@ -79,3 +79,3 @@ // Type definitions for node-telegram-bot-api 0.53 | ||
type MessageEntityType = 'mention' | 'hashtag' | 'cashtag' | 'bot_command' | 'url' | 'email' | 'phone_number' | | ||
'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'pre' | 'text_link' | 'text_mention'; | ||
'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'pre' | 'text_link' | 'text_mention' | 'spoiler'; | ||
@@ -138,2 +138,3 @@ type ParseMode = 'Markdown' | 'MarkdownV2' | 'HTML'; | ||
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply | undefined; | ||
protect_content?: boolean | undefined; | ||
} | ||
@@ -156,2 +157,3 @@ | ||
disable_notification?: boolean | undefined; | ||
protect_content?: boolean | undefined; | ||
} | ||
@@ -393,2 +395,7 @@ | ||
pre_checkout_query?: PreCheckoutQuery | undefined; | ||
poll?: Poll | undefined; | ||
poll_answer?: PollAnswer | undefined; | ||
my_chat_member?: ChatMemberUpdated | undefined; | ||
chat_member?: ChatMemberUpdated | undefined; | ||
chat_join_request?: ChatJoinRequest | undefined; | ||
} | ||
@@ -429,2 +436,7 @@ | ||
sticker_set_name?: string | undefined; | ||
has_private_forwards?: boolean | undefined; | ||
has_protected_content?: boolean | undefined; | ||
slow_mode_delay?: number | undefined; | ||
message_auto_delete_time?: number | undefined; | ||
linked_chat_id?: number | undefined; | ||
/** | ||
@@ -441,2 +453,3 @@ * @deprecated since version Telegram Bot API 4.4 - July 29, 2019 | ||
chat: Chat; | ||
sender_chat?: Chat | undefined; | ||
forward_from?: User | undefined; | ||
@@ -485,2 +498,5 @@ forward_from_chat?: Chat | undefined; | ||
reply_markup?: InlineKeyboardMarkup | undefined; | ||
is_automatic_forward?: boolean | undefined; | ||
has_protected_content?: boolean | undefined; | ||
dice?: Dice | undefined; | ||
} | ||
@@ -494,2 +510,3 @@ | ||
user?: User | undefined; | ||
language?: string | undefined; | ||
} | ||
@@ -605,2 +622,15 @@ | ||
interface Dice { | ||
emoji: string; | ||
value: number; | ||
} | ||
interface ChatJoinRequest { | ||
chat: Chat; | ||
from: User; | ||
date: number; | ||
bio?: string | undefined; | ||
invite_link?: ChatInviteLink | undefined; | ||
} | ||
interface UserProfilePhotos { | ||
@@ -682,2 +712,3 @@ total_count: number; | ||
member_limit?: number; | ||
name?: string; | ||
} | ||
@@ -701,3 +732,3 @@ | ||
can_send_media_messages?: boolean | undefined; | ||
can_send_polls: boolean; | ||
can_send_polls?: boolean | undefined; | ||
can_send_other_messages?: boolean | undefined; | ||
@@ -1157,8 +1188,8 @@ can_add_web_page_previews?: boolean | undefined; | ||
type BotCommandScope = BotCommandScopeDefault | | ||
BotCommandScopeAllPrivateChats | | ||
BotCommandScopeAllGroupChats | | ||
BotCommandScopeAllChatAdministrators | | ||
BotCommandScopeChat | | ||
BotCommandScopeChatAdministrators | | ||
BotCommandScopeChatMember; | ||
BotCommandScopeAllPrivateChats | | ||
BotCommandScopeAllGroupChats | | ||
BotCommandScopeAllChatAdministrators | | ||
BotCommandScopeChat | | ||
BotCommandScopeChatAdministrators | | ||
BotCommandScopeChatMember; | ||
} | ||
@@ -1238,2 +1269,6 @@ | ||
banChatSenderChat(chatId: TelegramBot.ChatId, senderChatId: TelegramBot.ChatId): Promise<boolean>; | ||
unbanChatSenderChat(chatId: TelegramBot.ChatId, senderChatId: TelegramBot.ChatId): Promise<boolean>; | ||
restrictChatMember(chatId: TelegramBot.ChatId, userId: string, options?: TelegramBot.RestrictChatMemberOptions): Promise<boolean>; | ||
@@ -1245,5 +1280,5 @@ | ||
createChatInviteLink(chatId: TelegramBot.ChatId): Promise<TelegramBot.ChatInviteLink>; | ||
createChatInviteLink(chatId: TelegramBot.ChatId, name?: string, expire_date?: number, member_limit?: number, creates_join_request?: boolean): Promise<TelegramBot.ChatInviteLink>; | ||
editChatInviteLink(chatId: TelegramBot.ChatId, inviteLink: string): Promise<TelegramBot.ChatInviteLink>; | ||
editChatInviteLink(chatId: TelegramBot.ChatId, inviteLink: string, name?: string, expire_date?: number, member_limit?: number, creates_join_request?: boolean): Promise<TelegramBot.ChatInviteLink>; | ||
@@ -1365,2 +1400,4 @@ revokeChatInviteLink(chatId: TelegramBot.ChatId, inviteLink: string): Promise<TelegramBot.ChatInviteLink>; | ||
addListener(event: 'chat_join_request', listener: (query: TelegramBot.ChatJoinRequest) => void): this; | ||
on(event: TelegramBot.MessageType | 'message', listener: (message: TelegramBot.Message, metadata: TelegramBot.Metadata) => void): this; | ||
@@ -1389,2 +1426,4 @@ | ||
on(event: 'chat_join_request', listener: (query: TelegramBot.ChatJoinRequest) => void): this; | ||
once(event: TelegramBot.MessageType | 'message', listener: (message: TelegramBot.Message, metadata: TelegramBot.Metadata) => void): this; | ||
@@ -1635,3 +1674,6 @@ | ||
getMyCommands(): Promise<TelegramBot.BotCommand[]>; | ||
getMyCommands( | ||
scope?: TelegramBot.BotCommandScope, | ||
language_code?: string | ||
): Promise<TelegramBot.BotCommand[]>; | ||
@@ -1638,0 +1680,0 @@ setMyCommands( |
{ | ||
"name": "@types/node-telegram-bot-api", | ||
"version": "0.53.3", | ||
"version": "0.53.4", | ||
"description": "TypeScript definitions for node-telegram-bot-api", | ||
@@ -66,4 +66,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-telegram-bot-api", | ||
}, | ||
"typesPublisherContentHash": "61fa53b8afb1820701431809b19396e657f76fc004ab855564094d32eba59f56", | ||
"typesPublisherContentHash": "f589e67fa8a77c546c0c28f4a129176bd9db993334c181c53d884392d18bdbf9", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 23 Dec 2021 23:35:12 GMT | ||
* Last updated: Mon, 03 Jan 2022 07:31:27 GMT | ||
* Dependencies: [@types/request](https://npmjs.com/package/@types/request), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63261
1348