telegram-bot-api-nodejs
Advanced tools
Comparing version 1.0.25 to 1.0.26
@@ -606,3 +606,3 @@ export type ChatType = "private" | "group" | "supergroup" | "channel"; | ||
} | ||
interface Game { | ||
export interface Game { | ||
title: string; | ||
@@ -626,29 +626,37 @@ description: string; | ||
type CallbackGame = object; | ||
interface BotCommand { | ||
export interface GameHighScore { | ||
position: number; | ||
user: User; | ||
score: number; | ||
} | ||
export interface Metadata { | ||
type?: MessageType; | ||
} | ||
export interface BotCommand { | ||
command: string; | ||
description: string; | ||
} | ||
type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember; | ||
interface BotCommandScopeDefault { | ||
type: 'default'; | ||
export type BotCommandScope = BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember; | ||
export interface BotCommandScopeDefault { | ||
type: "default"; | ||
} | ||
interface BotCommandScopeAllPrivateChats { | ||
type: 'all_private_chats'; | ||
export interface BotCommandScopeAllPrivateChats { | ||
type: "all_private_chats"; | ||
} | ||
interface BotCommandScopeAllGroupChats { | ||
type: 'all_group_chats'; | ||
export interface BotCommandScopeAllGroupChats { | ||
type: "all_group_chats"; | ||
} | ||
interface BotCommandScopeAllChatAdministrators { | ||
type: 'all_chat_administrators'; | ||
export interface BotCommandScopeAllChatAdministrators { | ||
type: "all_chat_administrators"; | ||
} | ||
interface BotCommandScopeChat { | ||
type: 'chat'; | ||
export interface BotCommandScopeChat { | ||
type: "chat"; | ||
chat_id: number | string; | ||
} | ||
interface BotCommandScopeChatAdministrators { | ||
type: 'chat_administrators'; | ||
export interface BotCommandScopeChatAdministrators { | ||
type: "chat_administrators"; | ||
chat_id: number | string; | ||
} | ||
interface BotCommandScopeChatMember { | ||
type: 'chat_member'; | ||
export interface BotCommandScopeChatMember { | ||
type: "chat_member"; | ||
chat_id: number | string; | ||
@@ -655,0 +663,0 @@ user_id: number; |
{ | ||
"name": "telegram-bot-api-nodejs", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "Telegram Bot API client for nodejs", | ||
@@ -5,0 +5,0 @@ "type": "module", |
40450
1298