Huge News!Announcing our $40M Series B led by Abstract Ventures.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.4 to 0.53.0

61

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

@@ -1,2 +0,2 @@

// Type definitions for node-telegram-bot-api 0.51
// Type definitions for node-telegram-bot-api 0.53
// Project: https://github.com/yagop/node-telegram-bot-api

@@ -38,3 +38,3 @@ // Definitions by: Alex Muench <https://github.com/ammuench>

type ChatAction = 'typing' | 'upload_photo' | 'record_video' | 'upload_video' | 'record_audio' | 'upload_audio' | 'upload_document' | 'find_location' | 'record_video_note' | 'upload_video_note';
type ChatAction = 'typing' | 'upload_photo' | 'record_video' | 'upload_video' | 'record_voice' | 'upload_voice' | 'upload_document' | 'find_location' | 'record_video_note' | 'upload_video_note';

@@ -71,3 +71,10 @@ type ChatMemberStatus = 'creator' | 'administrator' | 'member' | 'restricted' | 'left' | 'kicked';

'video_note' |
'voice';
'voice' |
'voice_chat_started' |
'voice_chat_ended' |
'voice_chat_participants_invited' |
'voice_chat_scheduled' |
'message_auto_delete_timer_changed' |
'chat_invite_link' |
'chat_member_updated';

@@ -661,2 +668,11 @@ type MessageEntityType = 'mention' | 'hashtag' | 'bot_command' | 'url' | 'email' | 'bold' | 'italic' | 'code' | 'pre' | 'text_link' | 'text_mention';

interface ChatInviteLink {
invite_link: string;
creator: User;
is_primary: boolean;
is_revoked: boolean;
expire_date?: number;
member_limit?: number;
}
interface ChatMember {

@@ -683,2 +699,11 @@ user: User;

interface ChatMemberUpdated {
chat: Chat;
from: User;
date: number;
old_chat_member: ChatMember;
new_chat_member: ChatMember;
invite_link?: ChatInviteLink;
}
interface ChatPermissions {

@@ -1169,2 +1194,8 @@ can_send_messages?: boolean | undefined;

createChatInviteLink(chatId: number | string): Promise<TelegramBot.ChatInviteLink>;
editChatInviteLink(chatId: number | string, inviteLink: string): Promise<TelegramBot.ChatInviteLink>;
revokeChatInviteLink(chatId: number | string, inviteLink: string): Promise<TelegramBot.ChatInviteLink>;
setChatPhoto(chatId: number | string, photo: string | Stream | Buffer): Promise<boolean>;

@@ -1268,2 +1299,4 @@

addListener(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
addListener(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1290,2 +1323,4 @@

on(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
on(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1312,2 +1347,4 @@

once(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
once(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1334,2 +1371,4 @@

prependListener(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
prependListener(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1356,2 +1395,4 @@

prependOnceListener(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
prependOnceListener(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1378,2 +1419,4 @@

removeListener(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
removeListener(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1400,2 +1443,4 @@

off(event: 'chat_member' | 'my_chat_member', listener: (member: TelegramBot.ChatMemberUpdated) => void): this;
off(event: 'chosen_inline_result', listener: (result: TelegramBot.ChosenInlineResult) => void): this;

@@ -1421,2 +1466,4 @@

'poll_answer' |
'chat_member' |
'my_chat_member' |
'chosen_inline_result' |

@@ -1444,2 +1491,4 @@ 'channel_post' |

'poll_answer' |
'chat_member' |
'my_chat_member' |
'chosen_inline_result' |

@@ -1467,2 +1516,4 @@ 'channel_post' |

'poll_answer' |
'chat_member' |
'my_chat_member' |
'chosen_inline_result' |

@@ -1489,2 +1540,4 @@ 'channel_post' |

'poll_answer' |
'chat_member' |
'my_chat_member' |
'chosen_inline_result' |

@@ -1512,2 +1565,4 @@ 'channel_post' |

'poll_answer' |
'chat_member' |
'my_chat_member' |
'chosen_inline_result' |

@@ -1514,0 +1569,0 @@ 'channel_post' |

6

node-telegram-bot-api/package.json
{
"name": "@types/node-telegram-bot-api",
"version": "0.51.4",
"version": "0.53.0",
"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": "5ee1c3518583237685e2cefadb1dda8ae073fbe8e24d090aecea91eb2c5c9c71",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "27667c2d99da305551bc983de59e6cea5b9d95018af98e512a2fb862dd79a69f",
"typeScriptVersion": "3.7"
}

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

### Additional Details
* Last updated: Wed, 07 Jul 2021 16:31:33 GMT
* Last updated: Fri, 01 Oct 2021 17:01:20 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