New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/node-telegram-bot-api

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node-telegram-bot-api - npm Package Compare versions

Comparing version 0.51.2 to 0.51.3

782

node-telegram-bot-api/index.d.ts

@@ -78,118 +78,118 @@ // Type definitions for node-telegram-bot-api 0.51

interface PollingOptions {
interval?: string | number;
autoStart?: boolean;
params?: GetUpdatesOptions;
interval?: string | number | undefined;
autoStart?: boolean | undefined;
params?: GetUpdatesOptions | undefined;
}
interface WebHookOptions {
host?: string;
port?: number;
key?: string;
cert?: string;
pfx?: string;
autoOpen?: boolean;
https?: ServerOptions;
healthEndpoint?: string;
host?: string | undefined;
port?: number | undefined;
key?: string | undefined;
cert?: string | undefined;
pfx?: string | undefined;
autoOpen?: boolean | undefined;
https?: ServerOptions | undefined;
healthEndpoint?: string | undefined;
}
interface ConstructorOptions {
polling?: boolean | PollingOptions;
webHook?: boolean | WebHookOptions;
onlyFirstMatch?: boolean;
request?: Options;
baseApiUrl?: string;
filepath?: boolean;
polling?: boolean | PollingOptions | undefined;
webHook?: boolean | WebHookOptions | undefined;
onlyFirstMatch?: boolean | undefined;
request?: Options | undefined;
baseApiUrl?: string | undefined;
filepath?: boolean | undefined;
}
interface StartPollingOptions extends ConstructorOptions {
restart?: boolean;
restart?: boolean | undefined;
}
interface StopPollingOptions {
cancel?: boolean;
reason?: string;
cancel?: boolean | undefined;
reason?: string | undefined;
}
interface SetWebHookOptions {
url?: string;
certificate?: string | Stream;
max_connections?: number;
allowed_updates?: string[];
url?: string | undefined;
certificate?: string | Stream | undefined;
max_connections?: number | undefined;
allowed_updates?: string[] | undefined;
}
interface GetUpdatesOptions {
offset?: number;
limit?: number;
timeout?: number;
allowed_updates?: string[];
offset?: number | undefined;
limit?: number | undefined;
timeout?: number | undefined;
allowed_updates?: string[] | undefined;
}
interface SendBasicOptions {
disable_notification?: boolean;
reply_to_message_id?: number;
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply;
disable_notification?: boolean | undefined;
reply_to_message_id?: number | undefined;
reply_markup?: InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply | undefined;
}
interface SendMessageOptions extends SendBasicOptions {
parse_mode?: ParseMode;
disable_web_page_preview?: boolean;
parse_mode?: ParseMode | undefined;
disable_web_page_preview?: boolean | undefined;
}
interface AnswerInlineQueryOptions {
cache_time?: number;
is_personal?: boolean;
next_offset?: string;
switch_pm_text?: string;
switch_pm_parameter?: string;
cache_time?: number | undefined;
is_personal?: boolean | undefined;
next_offset?: string | undefined;
switch_pm_text?: string | undefined;
switch_pm_parameter?: string | undefined;
}
interface ForwardMessageOptions {
disable_notification?: boolean;
disable_notification?: boolean | undefined;
}
interface SendPhotoOptions extends SendBasicOptions {
parse_mode?: ParseMode;
caption?: string;
parse_mode?: ParseMode | undefined;
caption?: string | undefined;
}
interface SendAudioOptions extends SendBasicOptions {
parse_mode?: ParseMode;
caption?: string;
duration?: number;
performer?: string;
title?: string;
parse_mode?: ParseMode | undefined;
caption?: string | undefined;
duration?: number | undefined;
performer?: string | undefined;
title?: string | undefined;
}
interface SendAnimationOptions extends SendBasicOptions {
parse_mode?: ParseMode;
caption?: string;
duration?: number;
width?: number;
height?: number;
parse_mode?: ParseMode | undefined;
caption?: string | undefined;
duration?: number | undefined;
width?: number | undefined;
height?: number | undefined;
}
interface SendDocumentOptions extends SendBasicOptions {
parse_mode?: ParseMode;
caption?: string;
parse_mode?: ParseMode | undefined;
caption?: string | undefined;
}
interface SendMediaGroupOptions {
disable_notification?: boolean;
reply_to_message_id?: number;
disable_notification?: boolean | undefined;
reply_to_message_id?: number | undefined;
}
interface SendPollOptions extends SendBasicOptions {
is_anonymous?: boolean;
type?: PollType;
allows_multiple_answers?: boolean;
correct_option_id?: number;
explanation?: string;
explanation_parse_mode?: ParseMode;
open_period?: number;
close_date?: number;
is_closed?: boolean;
is_anonymous?: boolean | undefined;
type?: PollType | undefined;
allows_multiple_answers?: boolean | undefined;
correct_option_id?: number | undefined;
explanation?: string | undefined;
explanation_parse_mode?: ParseMode | undefined;
open_period?: number | undefined;
close_date?: number | undefined;
is_closed?: boolean | undefined;
}
interface StopPollOptions {
reply_markup?: InlineKeyboardMarkup;
reply_markup?: InlineKeyboardMarkup | undefined;
}

@@ -200,18 +200,18 @@

interface SendVideoOptions extends SendBasicOptions {
parse_mode?: ParseMode;
duration?: number;
width?: number;
height?: number;
caption?: string;
parse_mode?: ParseMode | undefined;
duration?: number | undefined;
width?: number | undefined;
height?: number | undefined;
caption?: string | undefined;
}
interface SendVoiceOptions extends SendBasicOptions {
parse_mode?: ParseMode;
caption?: string;
duration?: number;
parse_mode?: ParseMode | undefined;
caption?: string | undefined;
duration?: number | undefined;
}
interface SendVideoNoteOptions extends SendBasicOptions {
duration?: number;
length?: number;
duration?: number | undefined;
length?: number | undefined;
}

@@ -226,8 +226,8 @@

interface SendVenueOptions extends SendBasicOptions {
foursquare_id?: string;
foursquare_id?: string | undefined;
}
interface SendContactOptions extends SendBasicOptions {
last_name?: string;
vcard?: string;
last_name?: string | undefined;
vcard?: string | undefined;
}

@@ -238,42 +238,42 @@

interface SendInvoiceOptions extends SendBasicOptions {
provider_data?: string;
photo_url?: string;
photo_size?: number;
photo_width?: number;
photo_height?: number;
need_name?: boolean;
need_phone_number?: boolean;
need_email?: boolean;
need_shipping_address?: boolean;
is_flexible?: boolean;
provider_data?: string | undefined;
photo_url?: string | undefined;
photo_size?: number | undefined;
photo_width?: number | undefined;
photo_height?: number | undefined;
need_name?: boolean | undefined;
need_phone_number?: boolean | undefined;
need_email?: boolean | undefined;
need_shipping_address?: boolean | undefined;
is_flexible?: boolean | undefined;
}
interface CopyMessageOptions extends SendBasicOptions {
caption?: string;
parse_mode?: ParseMode;
caption_entities?: MessageEntity[];
allow_sending_without_reply?: boolean;
caption?: string | undefined;
parse_mode?: ParseMode | undefined;
caption_entities?: MessageEntity[] | undefined;
allow_sending_without_reply?: boolean | undefined;
}
interface RestrictChatMemberOptions {
until_date?: number;
can_send_messages?: boolean;
can_send_media_messages?: boolean;
can_send_polls?: boolean;
can_send_other_messages?: boolean;
can_add_web_page_previews?: boolean;
can_change_info?: boolean;
can_invite_users?: boolean;
can_pin_messages?: boolean;
until_date?: number | undefined;
can_send_messages?: boolean | undefined;
can_send_media_messages?: boolean | undefined;
can_send_polls?: boolean | undefined;
can_send_other_messages?: boolean | undefined;
can_add_web_page_previews?: boolean | undefined;
can_change_info?: boolean | undefined;
can_invite_users?: boolean | undefined;
can_pin_messages?: boolean | undefined;
}
interface PromoteChatMemberOptions {
can_change_info?: boolean;
can_post_messages?: boolean;
can_edit_messages?: boolean;
can_delete_messages?: boolean;
can_invite_users?: boolean;
can_restrict_members?: boolean;
can_pin_messages?: boolean;
can_promote_members?: boolean;
can_change_info?: boolean | undefined;
can_post_messages?: boolean | undefined;
can_edit_messages?: boolean | undefined;
can_delete_messages?: boolean | undefined;
can_invite_users?: boolean | undefined;
can_restrict_members?: boolean | undefined;
can_pin_messages?: boolean | undefined;
can_promote_members?: boolean | undefined;
}

@@ -283,23 +283,23 @@

callback_query_id: string;
text?: string;
show_alert?: boolean;
url?: string;
cache_time?: number;
text?: string | undefined;
show_alert?: boolean | undefined;
url?: string | undefined;
cache_time?: number | undefined;
}
interface EditMessageTextOptions extends EditMessageCaptionOptions {
parse_mode?: ParseMode;
disable_web_page_preview?: boolean;
parse_mode?: ParseMode | undefined;
disable_web_page_preview?: boolean | undefined;
}
interface EditMessageCaptionOptions extends EditMessageReplyMarkupOptions {
reply_markup?: InlineKeyboardMarkup;
parse_mode?: ParseMode;
caption_entities?: MessageEntity[];
reply_markup?: InlineKeyboardMarkup | undefined;
parse_mode?: ParseMode | undefined;
caption_entities?: MessageEntity[] | undefined;
}
interface EditMessageReplyMarkupOptions {
chat_id?: number | string;
message_id?: number;
inline_message_id?: string;
chat_id?: number | string | undefined;
message_id?: number | undefined;
inline_message_id?: string | undefined;
}

@@ -315,31 +315,31 @@

interface GetUserProfilePhotosOptions {
offset?: number;
limit?: number;
offset?: number | undefined;
limit?: number | undefined;
}
interface SetGameScoreOptions {
force?: boolean;
disable_edit_message?: boolean;
chat_id?: number;
message_id?: number;
inline_message_id?: string;
force?: boolean | undefined;
disable_edit_message?: boolean | undefined;
chat_id?: number | undefined;
message_id?: number | undefined;
inline_message_id?: string | undefined;
}
interface GetGameHighScoresOptions {
chat_id?: number;
message_id?: number;
inline_message_id?: string;
chat_id?: number | undefined;
message_id?: number | undefined;
inline_message_id?: string | undefined;
}
interface AnswerShippingQueryOptions {
shipping_options?: ShippingOption[];
error_message?: string;
shipping_options?: ShippingOption[] | undefined;
error_message?: string | undefined;
}
interface AnswerPreCheckoutQueryOptions {
error_message?: string;
error_message?: string | undefined;
}
interface SendDiceOptions extends SendBasicOptions {
emoji?: string;
emoji?: string | undefined;
}

@@ -356,10 +356,10 @@

type: string;
data?: string;
phone_number?: string;
email?: string;
files?: PassportFile[];
front_side?: PassportFile;
reverse_side?: PassportFile;
selfie?: PassportFile;
translation?: PassportFile[];
data?: string | undefined;
phone_number?: string | undefined;
email?: string | undefined;
files?: PassportFile[] | undefined;
front_side?: PassportFile | undefined;
reverse_side?: PassportFile | undefined;
selfie?: PassportFile | undefined;
translation?: PassportFile[] | undefined;
hash: string;

@@ -381,11 +381,11 @@ }

update_id: number;
message?: Message;
edited_message?: Message;
channel_post?: Message;
edited_channel_post?: Message;
inline_query?: InlineQuery;
chosen_inline_result?: ChosenInlineResult;
callback_query?: CallbackQuery;
shipping_query?: ShippingQuery;
pre_checkout_query?: PreCheckoutQuery;
message?: Message | undefined;
edited_message?: Message | undefined;
channel_post?: Message | undefined;
edited_channel_post?: Message | undefined;
inline_query?: InlineQuery | undefined;
chosen_inline_result?: ChosenInlineResult | undefined;
callback_query?: CallbackQuery | undefined;
shipping_query?: ShippingQuery | undefined;
pre_checkout_query?: PreCheckoutQuery | undefined;
}

@@ -397,6 +397,6 @@

pending_update_count: number;
last_error_date?: number;
last_error_message?: string;
max_connections?: number;
allowed_updates?: string[];
last_error_date?: number | undefined;
last_error_message?: string | undefined;
max_connections?: number | undefined;
allowed_updates?: string[] | undefined;
}

@@ -408,5 +408,5 @@

first_name: string;
last_name?: string;
username?: string;
language_code?: string;
last_name?: string | undefined;
username?: string | undefined;
language_code?: string | undefined;
}

@@ -417,17 +417,17 @@

type: ChatType;
title?: string;
username?: string;
first_name?: string;
last_name?: string;
photo?: ChatPhoto;
description?: string;
invite_link?: string;
pinned_message?: Message;
permissions?: ChatPermissions;
can_set_sticker_set?: boolean;
sticker_set_name?: string;
title?: string | undefined;
username?: string | undefined;
first_name?: string | undefined;
last_name?: string | undefined;
photo?: ChatPhoto | undefined;
description?: string | undefined;
invite_link?: string | undefined;
pinned_message?: Message | undefined;
permissions?: ChatPermissions | undefined;
can_set_sticker_set?: boolean | undefined;
sticker_set_name?: string | undefined;
/**
* @deprecated since version Telegram Bot API 4.4 - July 29, 2019
*/
all_members_are_administrators?: boolean;
all_members_are_administrators?: boolean | undefined;
}

@@ -437,48 +437,48 @@

message_id: number;
from?: User;
from?: User | undefined;
date: number;
chat: Chat;
forward_from?: User;
forward_from_chat?: Chat;
forward_from_message_id?: number;
forward_signature?: string;
forward_sender_name?: string;
forward_date?: number;
reply_to_message?: Message;
edit_date?: number;
media_group_id?: string;
author_signature?: string;
text?: string;
entities?: MessageEntity[];
caption_entities?: MessageEntity[];
audio?: Audio;
document?: Document;
animation?: Animation;
game?: Game;
photo?: PhotoSize[];
sticker?: Sticker;
video?: Video;
voice?: Voice;
video_note?: VideoNote;
caption?: string;
contact?: Contact;
location?: Location;
venue?: Venue;
poll?: Poll;
new_chat_members?: User[];
left_chat_member?: User;
new_chat_title?: string;
new_chat_photo?: PhotoSize[];
delete_chat_photo?: boolean;
group_chat_created?: boolean;
supergroup_chat_created?: boolean;
channel_chat_created?: boolean;
migrate_to_chat_id?: number;
migrate_from_chat_id?: number;
pinned_message?: Message;
invoice?: Invoice;
successful_payment?: SuccessfulPayment;
connected_website?: string;
passport_data?: PassportData;
reply_markup?: InlineKeyboardMarkup;
forward_from?: User | undefined;
forward_from_chat?: Chat | undefined;
forward_from_message_id?: number | undefined;
forward_signature?: string | undefined;
forward_sender_name?: string | undefined;
forward_date?: number | undefined;
reply_to_message?: Message | undefined;
edit_date?: number | undefined;
media_group_id?: string | undefined;
author_signature?: string | undefined;
text?: string | undefined;
entities?: MessageEntity[] | undefined;
caption_entities?: MessageEntity[] | undefined;
audio?: Audio | undefined;
document?: Document | undefined;
animation?: Animation | undefined;
game?: Game | undefined;
photo?: PhotoSize[] | undefined;
sticker?: Sticker | undefined;
video?: Video | undefined;
voice?: Voice | undefined;
video_note?: VideoNote | undefined;
caption?: string | undefined;
contact?: Contact | undefined;
location?: Location | undefined;
venue?: Venue | undefined;
poll?: Poll | undefined;
new_chat_members?: User[] | undefined;
left_chat_member?: User | undefined;
new_chat_title?: string | undefined;
new_chat_photo?: PhotoSize[] | undefined;
delete_chat_photo?: boolean | undefined;
group_chat_created?: boolean | undefined;
supergroup_chat_created?: boolean | undefined;
channel_chat_created?: boolean | undefined;
migrate_to_chat_id?: number | undefined;
migrate_from_chat_id?: number | undefined;
pinned_message?: Message | undefined;
invoice?: Invoice | undefined;
successful_payment?: SuccessfulPayment | undefined;
connected_website?: string | undefined;
passport_data?: PassportData | undefined;
reply_markup?: InlineKeyboardMarkup | undefined;
}

@@ -490,4 +490,4 @@

length: number;
url?: string;
user?: User;
url?: string | undefined;
user?: User | undefined;
}

@@ -497,3 +497,3 @@

file_id: string;
file_size?: number;
file_size?: number | undefined;
}

@@ -508,12 +508,12 @@

duration: number;
performer?: string;
title?: string;
mime_type?: string;
thumb?: PhotoSize;
performer?: string | undefined;
title?: string | undefined;
mime_type?: string | undefined;
thumb?: PhotoSize | undefined;
}
interface Document extends FileBase {
thumb?: PhotoSize;
file_name?: string;
mime_type?: string;
thumb?: PhotoSize | undefined;
file_name?: string | undefined;
mime_type?: string | undefined;
}

@@ -525,4 +525,4 @@

duration: number;
thumb?: PhotoSize;
mime_type?: string;
thumb?: PhotoSize | undefined;
mime_type?: string | undefined;
}

@@ -532,3 +532,3 @@

duration: number;
mime_type?: string;
mime_type?: string | undefined;
}

@@ -538,4 +538,4 @@

media: string;
caption?: string;
parse_mode?: ParseMode;
caption?: string | undefined;
parse_mode?: ParseMode | undefined;
}

@@ -549,6 +549,6 @@

type: 'video';
width?: number;
height?: number;
duration?: number;
supports_streaming?: boolean;
width?: number | undefined;
height?: number | undefined;
duration?: number | undefined;
supports_streaming?: boolean | undefined;
}

@@ -561,3 +561,3 @@

duration: number;
thumb?: PhotoSize;
thumb?: PhotoSize | undefined;
}

@@ -568,5 +568,5 @@

first_name: string;
last_name?: string;
user_id?: number;
vcard?: string;
last_name?: string | undefined;
user_id?: number | undefined;
vcard?: string | undefined;
}

@@ -583,4 +583,4 @@

address: string;
foursquare_id?: string;
foursquare_type?: string;
foursquare_id?: string | undefined;
foursquare_type?: string | undefined;
}

@@ -618,3 +618,3 @@

interface File extends FileBase {
file_path?: string;
file_path?: string | undefined;
}

@@ -624,5 +624,5 @@

keyboard: KeyboardButton[][];
resize_keyboard?: boolean;
one_time_keyboard?: boolean;
selective?: boolean;
resize_keyboard?: boolean | undefined;
one_time_keyboard?: boolean | undefined;
selective?: boolean | undefined;
}

@@ -632,4 +632,4 @@

text: string;
request_contact?: boolean;
request_location?: boolean;
request_contact?: boolean | undefined;
request_location?: boolean | undefined;
}

@@ -639,3 +639,3 @@

remove_keyboard: boolean;
selective?: boolean;
selective?: boolean | undefined;
}

@@ -649,9 +649,9 @@

text: string;
url?: string;
login_url?: LoginUrl;
callback_data?: string;
switch_inline_query?: string;
switch_inline_query_current_chat?: string;
callback_game?: CallbackGame;
pay?: boolean;
url?: string | undefined;
login_url?: LoginUrl | undefined;
callback_data?: string | undefined;
switch_inline_query?: string | undefined;
switch_inline_query_current_chat?: string | undefined;
callback_game?: CallbackGame | undefined;
pay?: boolean | undefined;
}

@@ -661,5 +661,5 @@

url: string;
forward_text?: string;
bot_username?: string;
request_write_acces?: boolean;
forward_text?: string | undefined;
bot_username?: string | undefined;
request_write_acces?: boolean | undefined;
}

@@ -670,7 +670,7 @@

from: User;
message?: Message;
inline_message_id?: string;
message?: Message | undefined;
inline_message_id?: string | undefined;
chat_instance: string;
data?: string;
game_short_name?: string;
data?: string | undefined;
game_short_name?: string | undefined;
}

@@ -680,3 +680,3 @@

force_reply: boolean;
selective?: boolean;
selective?: boolean | undefined;
}

@@ -692,29 +692,29 @@

status: ChatMemberStatus;
until_date?: number;
can_be_edited?: boolean;
can_post_messages?: boolean;
can_edit_messages?: boolean;
can_delete_messages?: boolean;
can_restrict_members?: boolean;
can_promote_members?: boolean;
can_change_info?: boolean;
can_invite_users?: boolean;
can_pin_messages?: boolean;
is_member?: boolean;
can_send_messages?: boolean;
can_send_media_messages?: boolean;
until_date?: number | undefined;
can_be_edited?: boolean | undefined;
can_post_messages?: boolean | undefined;
can_edit_messages?: boolean | undefined;
can_delete_messages?: boolean | undefined;
can_restrict_members?: boolean | undefined;
can_promote_members?: boolean | undefined;
can_change_info?: boolean | undefined;
can_invite_users?: boolean | undefined;
can_pin_messages?: boolean | undefined;
is_member?: boolean | undefined;
can_send_messages?: boolean | undefined;
can_send_media_messages?: boolean | undefined;
can_send_polls: boolean;
can_send_other_messages?: boolean;
can_add_web_page_previews?: boolean;
can_send_other_messages?: boolean | undefined;
can_add_web_page_previews?: boolean | undefined;
}
interface ChatPermissions {
can_send_messages?: boolean;
can_send_media_messages?: boolean;
can_send_polls?: boolean;
can_send_other_messages?: boolean;
can_add_web_page_previews?: boolean;
can_change_info?: boolean;
can_invite_users?: boolean;
can_pin_messages?: boolean;
can_send_messages?: boolean | undefined;
can_send_media_messages?: boolean | undefined;
can_send_polls?: boolean | undefined;
can_send_other_messages?: boolean | undefined;
can_add_web_page_previews?: boolean | undefined;
can_change_info?: boolean | undefined;
can_invite_users?: boolean | undefined;
can_pin_messages?: boolean | undefined;
}

@@ -728,7 +728,7 @@

height: number;
thumb?: PhotoSize;
emoji?: string;
set_name?: string;
mask_position?: MaskPosition;
file_size?: number;
thumb?: PhotoSize | undefined;
emoji?: string | undefined;
set_name?: string | undefined;
mask_position?: MaskPosition | undefined;
file_size?: number | undefined;
}

@@ -753,3 +753,3 @@

from: User;
location?: Location;
location?: Location | undefined;
query: string;

@@ -761,3 +761,3 @@ offset: string;

id: string;
reply_markup?: InlineKeyboardMarkup;
reply_markup?: InlineKeyboardMarkup | undefined;
}

@@ -769,8 +769,8 @@

input_message_content: InputMessageContent;
url?: string;
hide_url?: boolean;
description?: string;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
url?: string | undefined;
hide_url?: boolean | undefined;
description?: string | undefined;
thumb_url?: string | undefined;
thumb_width?: number | undefined;
thumb_height?: number | undefined;
}

@@ -782,8 +782,8 @@

thumb_url: string;
photo_width?: number;
photo_height?: number;
title?: string;
description?: string;
caption?: string;
input_message_content?: InputMessageContent;
photo_width?: number | undefined;
photo_height?: number | undefined;
title?: string | undefined;
description?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -794,9 +794,9 @@

gif_url: string;
gif_width?: number;
gif_height?: number;
gif_duration?: number;
thumb_url?: string;
title?: string;
caption?: string;
input_message_content?: InputMessageContent;
gif_width?: number | undefined;
gif_height?: number | undefined;
gif_duration?: number | undefined;
thumb_url?: string | undefined;
title?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -807,9 +807,9 @@

mpeg4_url: string;
mpeg4_width?: number;
mpeg4_height?: number;
mpeg4_duration?: number;
thumb_url?: string;
title?: string;
caption?: string;
input_message_content?: InputMessageContent;
mpeg4_width?: number | undefined;
mpeg4_height?: number | undefined;
mpeg4_duration?: number | undefined;
thumb_url?: string | undefined;
title?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -823,8 +823,8 @@

title: string;
caption?: string;
video_width?: number;
video_height?: number;
video_duration?: number;
description?: string;
input_message_content?: InputMessageContent;
caption?: string | undefined;
video_width?: number | undefined;
video_height?: number | undefined;
video_duration?: number | undefined;
description?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -836,6 +836,6 @@

title: string;
caption?: string;
performer?: string;
audio_duration?: number;
input_message_content?: InputMessageContent;
caption?: string | undefined;
performer?: string | undefined;
audio_duration?: number | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -847,5 +847,5 @@

title: string;
caption?: string;
voice_duration?: number;
input_message_content?: InputMessageContent;
caption?: string | undefined;
voice_duration?: number | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -856,10 +856,10 @@

title: string;
caption?: string;
caption?: string | undefined;
document_url: string;
mime_type: string;
description?: string;
input_message_content?: InputMessageContent;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
description?: string | undefined;
input_message_content?: InputMessageContent | undefined;
thumb_url?: string | undefined;
thumb_width?: number | undefined;
thumb_height?: number | undefined;
}

@@ -871,6 +871,6 @@

title: string;
input_message_content?: InputMessageContent;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
input_message_content?: InputMessageContent | undefined;
thumb_url?: string | undefined;
thumb_width?: number | undefined;
thumb_height?: number | undefined;
}

@@ -885,3 +885,3 @@

address: string;
foursquare_id?: string;
foursquare_id?: string | undefined;
}

@@ -893,7 +893,7 @@

first_name: string;
last_name?: string;
input_message_content?: InputMessageContent;
thumb_url?: string;
thumb_width?: number;
thumb_height?: number;
last_name?: string | undefined;
input_message_content?: InputMessageContent | undefined;
thumb_url?: string | undefined;
thumb_width?: number | undefined;
thumb_height?: number | undefined;
}

@@ -909,6 +909,6 @@

photo_file_id: string;
title?: string;
description?: string;
caption?: string;
input_message_content?: InputMessageContent;
title?: string | undefined;
description?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -919,5 +919,5 @@

gif_file_id: string;
title?: string;
caption?: string;
input_message_content?: InputMessageContent;
title?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -928,5 +928,5 @@

mpeg4_file_id: string;
title?: string;
caption?: string;
input_message_content?: InputMessageContent;
title?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -937,3 +937,3 @@

sticker_file_id: string;
input_message_content?: InputMessageContent;
input_message_content?: InputMessageContent | undefined;
}

@@ -945,5 +945,5 @@

document_file_id: string;
description?: string;
caption?: string;
input_message_content?: InputMessageContent;
description?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -955,5 +955,5 @@

title: string;
description?: string;
caption?: string;
input_message_content?: InputMessageContent;
description?: string | undefined;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -965,4 +965,4 @@

title: string;
caption?: string;
input_message_content?: InputMessageContent;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -973,4 +973,4 @@

audio_file_id: string;
caption?: string;
input_message_content?: InputMessageContent;
caption?: string | undefined;
input_message_content?: InputMessageContent | undefined;
}

@@ -1004,4 +1004,4 @@

message_text: string;
parse_mode?: ParseMode;
disable_web_page_preview?: boolean;
parse_mode?: ParseMode | undefined;
disable_web_page_preview?: boolean | undefined;
}

@@ -1017,3 +1017,3 @@

address: string;
foursquare_id?: string;
foursquare_id?: string | undefined;
}

@@ -1024,3 +1024,3 @@

first_name: string;
last_name?: string;
last_name?: string | undefined;
}

@@ -1031,4 +1031,4 @@

from: User;
location?: Location;
inline_message_id?: string;
location?: Location | undefined;
inline_message_id?: string | undefined;
query: string;

@@ -1038,4 +1038,4 @@ }

interface ResponseParameters {
migrate_to_chat_id?: number;
retry_after?: number;
migrate_to_chat_id?: number | undefined;
retry_after?: number | undefined;
}

@@ -1066,6 +1066,6 @@

interface OrderInfo {
name?: string;
phone_number?: string;
email?: string;
shipping_address?: ShippingAddress;
name?: string | undefined;
phone_number?: string | undefined;
email?: string | undefined;
shipping_address?: ShippingAddress | undefined;
}

@@ -1083,4 +1083,4 @@

invoice_payload: string;
shipping_option_id?: string;
order_info?: OrderInfo;
shipping_option_id?: string | undefined;
order_info?: OrderInfo | undefined;
telegram_payment_charge_id: string;

@@ -1103,4 +1103,4 @@ provider_payment_charge_id: string;

invoice_payload: string;
shipping_option_id?: string;
order_info?: OrderInfo;
shipping_option_id?: string | undefined;
order_info?: OrderInfo | undefined;
}

@@ -1112,5 +1112,5 @@

photo: PhotoSize[];
text?: string;
text_entities?: MessageEntity[];
animation?: Animation;
text?: string | undefined;
text_entities?: MessageEntity[] | undefined;
animation?: Animation | undefined;
}

@@ -1122,5 +1122,5 @@

duration: number;
thumb?: PhotoSize;
file_name?: string;
mime_type?: string;
thumb?: PhotoSize | undefined;
file_name?: string | undefined;
mime_type?: string | undefined;
}

@@ -1137,3 +1137,3 @@

interface Metadata {
type?: MessageType;
type?: MessageType | undefined;
}

@@ -1140,0 +1140,0 @@

{
"name": "@types/node-telegram-bot-api",
"version": "0.51.2",
"version": "0.51.3",
"description": "TypeScript definitions for node-telegram-bot-api",

@@ -71,4 +71,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-telegram-bot-api",

},
"typesPublisherContentHash": "63dde0ac5304ba7ffb9f1fd63c4640fff27d949fe694340805458acde3c8dbfb",
"typesPublisherContentHash": "fae2bbc3bbe7b7a0d5424a8b649afce6abd92cb994c4952c872d8ffcbadd276c",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 02 Jul 2021 08:31:21 GMT
* Last updated: Wed, 07 Jul 2021 00:01:50 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc