typescript-telegram-bot-api
Advanced tools
Comparing version 0.1.21 to 0.1.22
@@ -195,2 +195,3 @@ export * from './Animation'; | ||
export * from './SuccessfulPayment'; | ||
export * from './RefundedPayment'; | ||
export * from './SwitchInlineQueryChosenChat'; | ||
@@ -197,0 +198,0 @@ export * from './TextQuote'; |
@@ -211,2 +211,3 @@ "use strict"; | ||
__exportStar(require("./SuccessfulPayment"), exports); | ||
__exportStar(require("./RefundedPayment"), exports); | ||
__exportStar(require("./SwitchInlineQueryChosenChat"), exports); | ||
@@ -213,0 +214,0 @@ __exportStar(require("./TextQuote"), exports); |
@@ -1,2 +0,2 @@ | ||
import { ExternalReplyInfo, Sticker, Venue, Location, Animation, Document, MaybeInaccessibleMessage, ChatBackground, GiveawayCompleted, MessageEntity, LinkPreviewOptions, Poll, InlineKeyboardMarkup, User, PassportData, Game, PhotoSize, Audio, Chat, TextQuote, Story, WriteAccessAllowed, ProximityAlertTriggered, Giveaway, GiveawayWinners, WebAppData, Voice, VideoNote, VideoChatStarted, VideoChatScheduled, VideoChatEnded, VideoChatParticipantsInvited, SuccessfulPayment, Video, UsersShared, MessageOrigin, MessageAutoDeleteTimerChanged, Invoice, GiveawayCreated, GeneralForumTopicUnhidden, GeneralForumTopicHidden, ForumTopicReopened, ForumTopicEdited, ForumTopicCreated, ForumTopicClosed, Dice, Contact, ChatShared, ChatBoostAdded, PaidMediaInfo } from './'; | ||
import { ExternalReplyInfo, Sticker, Venue, Location, Animation, Document, MaybeInaccessibleMessage, ChatBackground, GiveawayCompleted, MessageEntity, LinkPreviewOptions, Poll, InlineKeyboardMarkup, User, PassportData, Game, PhotoSize, Audio, Chat, TextQuote, Story, WriteAccessAllowed, ProximityAlertTriggered, Giveaway, GiveawayWinners, WebAppData, Voice, VideoNote, VideoChatStarted, VideoChatScheduled, VideoChatEnded, VideoChatParticipantsInvited, SuccessfulPayment, RefundedPayment, Video, UsersShared, MessageOrigin, MessageAutoDeleteTimerChanged, Invoice, GiveawayCreated, GeneralForumTopicUnhidden, GeneralForumTopicHidden, ForumTopicReopened, ForumTopicEdited, ForumTopicCreated, ForumTopicClosed, Dice, Contact, ChatShared, ChatBoostAdded, PaidMediaInfo } from './'; | ||
export type Message = { | ||
@@ -63,2 +63,3 @@ message_id: number; | ||
successful_payment?: SuccessfulPayment; | ||
refunded_payment?: RefundedPayment; | ||
users_shared?: UsersShared; | ||
@@ -89,5 +90,5 @@ chat_shared?: ChatShared; | ||
}; | ||
export declare const messageTypes: readonly ["text", "animation", "audio", "contact", "dice", "document", "game", "invoice", "location", "passport_data", "photo", "pinned_message", "poll", "sticker", "video", "video_note", "voice", "successful_payment", "migrate_from_chat_id", "migrate_to_chat_id", "new_chat_members", "new_chat_photo", "new_chat_title", "left_chat_member", "delete_chat_photo", "group_chat_created", "supergroup_chat_created", "channel_chat_created", "message_auto_delete_timer_changed", "video_chat_scheduled", "video_chat_started", "video_chat_ended", "video_chat_participants_invited", "web_app_data"]; | ||
export declare const messageTypes: readonly ["text", "animation", "audio", "contact", "dice", "document", "game", "invoice", "location", "passport_data", "photo", "pinned_message", "poll", "sticker", "video", "video_note", "voice", "successful_payment", "refunded_payment", "migrate_from_chat_id", "migrate_to_chat_id", "new_chat_members", "new_chat_photo", "new_chat_title", "left_chat_member", "delete_chat_photo", "group_chat_created", "supergroup_chat_created", "channel_chat_created", "message_auto_delete_timer_changed", "video_chat_scheduled", "video_chat_started", "video_chat_ended", "video_chat_participants_invited", "web_app_data"]; | ||
export type MessageTypes = { | ||
[P in (typeof messageTypes)[number] as `message:${P}`]: Message & Required<Pick<Message, P>>; | ||
}; |
@@ -23,2 +23,3 @@ "use strict"; | ||
'successful_payment', | ||
'refunded_payment', | ||
'migrate_from_chat_id', | ||
@@ -25,0 +26,0 @@ 'migrate_to_chat_id', |
{ | ||
"type": "commonjs", | ||
"name": "typescript-telegram-bot-api", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "Telegram Bot API wrapper for Node.js written in TypeScript", | ||
@@ -6,0 +6,0 @@ "repository": "github:Borodin/typescript-telegram-bot-api", |
@@ -6,3 +6,3 @@ # 📦 typescript-telegram-bot-api | ||
[](https://codecov.io/github/Borodin/typescript-telegram-bot-api) | ||
[](https://core.telegram.org/bots/api#july-1-2024) | ||
[](https://core.telegram.org/bots/api#july-7-2024) | ||
@@ -9,0 +9,0 @@ |
263520
452
6266