@types/node-telegram-bot-api
Advanced tools
Comparing version 0.31.1 to 0.40.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for node-telegram-bot-api 0.31 | ||
// Type definitions for node-telegram-bot-api 0.40 | ||
// Project: https://github.com/yagop/node-telegram-bot-api | ||
@@ -8,2 +8,3 @@ // Definitions by: Alex Muench <https://github.com/ammuench> | ||
// XC-Zhang <https://github.com/XC-Zhang> | ||
// AdityaThebe <https://github.com/adityathebe> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -323,3 +324,2 @@ // TypeScript Version: 2.3 | ||
last_name?: string; | ||
all_members_are_administrators?: boolean; | ||
photo?: ChatPhoto; | ||
@@ -329,2 +329,9 @@ description?: string; | ||
pinned_message?: Message; | ||
permissions?: ChatPermissions; | ||
can_set_sticker_set?: boolean; | ||
sticker_set_name?: string; | ||
/** | ||
* @deprecated since version Telegram Bot API 4.4 - July 29, 2019 | ||
*/ | ||
all_members_are_administrators?: boolean; | ||
} | ||
@@ -341,10 +348,14 @@ | ||
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; | ||
@@ -360,2 +371,3 @@ photo?: PhotoSize[]; | ||
venue?: Venue; | ||
poll?: Poll; | ||
new_chat_members?: User[]; | ||
@@ -374,2 +386,3 @@ left_chat_member?: User; | ||
successful_payment?: SuccessfulPayment; | ||
connected_website?: string; | ||
reply_markup?: InlineKeyboardMarkup; | ||
@@ -401,2 +414,3 @@ } | ||
mime_type?: string; | ||
thumb?: PhotoSize; | ||
} | ||
@@ -454,2 +468,3 @@ | ||
user_id?: number; | ||
vcard?: string; | ||
} | ||
@@ -467,4 +482,17 @@ | ||
foursquare_id?: string; | ||
foursquare_type?: string; | ||
} | ||
interface PollOption { | ||
text: string; | ||
voter_count: number; | ||
} | ||
interface Poll { | ||
id: string; | ||
question: string; | ||
options: PollOption[]; | ||
is_closed: boolean; | ||
} | ||
interface UserProfilePhotos { | ||
@@ -504,2 +532,3 @@ total_count: number; | ||
url?: string; | ||
login_url?: LoginUrl; | ||
callback_data?: string; | ||
@@ -512,2 +541,9 @@ switch_inline_query?: string; | ||
interface LoginUrl { | ||
url: string; | ||
forward_text?: string; | ||
bot_username?: string; | ||
request_write_acces?: boolean; | ||
} | ||
interface CallbackQuery { | ||
@@ -538,12 +574,14 @@ id: string; | ||
can_be_edited?: boolean; | ||
can_change_info?: 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_restrict_members?: boolean; | ||
can_pin_messages?: boolean; | ||
can_promote_members?: boolean; | ||
is_member?: boolean; | ||
can_send_messages?: boolean; | ||
can_send_media_messages?: boolean; | ||
can_send_polls: boolean; | ||
can_send_other_messages?: boolean; | ||
@@ -553,2 +591,13 @@ can_add_web_page_previews?: boolean; | ||
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; | ||
} | ||
interface Sticker { | ||
@@ -917,8 +966,9 @@ file_id: string; | ||
interface Animation { | ||
file_id: string; | ||
interface Animation extends FileBase { | ||
width: number; | ||
height: number; | ||
duration: number; | ||
thumb?: PhotoSize; | ||
file_name?: string; | ||
mime_type?: string; | ||
file_size?: number; | ||
} | ||
@@ -925,0 +975,0 @@ |
{ | ||
"name": "@types/node-telegram-bot-api", | ||
"version": "0.31.1", | ||
"version": "0.40.0", | ||
"description": "TypeScript definitions for node-telegram-bot-api", | ||
@@ -31,2 +31,7 @@ "license": "MIT", | ||
"githubUsername": "XC-Zhang" | ||
}, | ||
{ | ||
"name": "AdityaThebe", | ||
"url": "https://github.com/adityathebe", | ||
"githubUsername": "adityathebe" | ||
} | ||
@@ -46,4 +51,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "8f3d0e764247e48ba93637510135bba0b5e93ed7f2eae0cfef96536394ead005", | ||
"typesPublisherContentHash": "efe4b255a0965dd81b80c1fa03a3b3c9e26ad70916f1b62e9af83e04f9676a11", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 07 Oct 2019 23:51:30 GMT | ||
* Last updated: Mon, 04 Nov 2019 17:03:29 GMT | ||
* Dependencies: @types/request, @types/node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Alex Muench <https://github.com/ammuench>, Agadar <https://github.com/agadar>, Giorgio Garasto <https://github.com/Dabolus>, Kallu609 <https://github.com/Kallu609>, and XC-Zhang <https://github.com/XC-Zhang>. | ||
These definitions were written by Alex Muench <https://github.com/ammuench>, Agadar <https://github.com/agadar>, Giorgio Garasto <https://github.com/Dabolus>, Kallu609 <https://github.com/Kallu609>, XC-Zhang <https://github.com/XC-Zhang>, and AdityaThebe <https://github.com/adityathebe>. |
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
47048
1095