@grammyjs/types
Advanced tools
Comparing version 2.11.0 to 2.11.1
{ | ||
"name": "@grammyjs/types", | ||
"version": "2.11.0", | ||
"version": "2.11.1", | ||
"description": "Telegram Bot API type declarations for grammY", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,4 +12,2 @@ import { CallbackQuery } from "./markup"; | ||
chat: Chat.ChannelChat; | ||
author_signature?: string; | ||
from?: never; | ||
} | ||
@@ -19,9 +17,4 @@ /** Internal type holding properties that message updates outside of channels share. */ | ||
chat: Exclude<Chat, Chat.ChannelChat>; | ||
author_signature?: never; | ||
from: User; | ||
} | ||
/** Internal type holding properties that updates about new messages share. */ | ||
export interface New { | ||
edit_date?: never; | ||
} | ||
/** Internal type holding properties that updates about edited messages share. */ | ||
@@ -31,8 +24,2 @@ export interface Edited { | ||
edit_date: number; | ||
forward_from?: never; | ||
forward_from_chat?: never; | ||
forward_from_message_id?: never; | ||
forward_signature?: never; | ||
forward_sender_name?: never; | ||
forward_date?: never; | ||
} | ||
@@ -47,7 +34,7 @@ } | ||
/** New incoming message of any kind - text, photo, sticker, etc. */ | ||
message?: Message & Update.New & Update.NonChannel; | ||
message?: Message & Update.NonChannel; | ||
/** New version of a message that is known to the bot and was edited */ | ||
edited_message?: Message & Update.Edited & Update.NonChannel; | ||
/** New incoming channel post of any kind - text, photo, sticker, etc. */ | ||
channel_post?: Message & Update.New & Update.Channel; | ||
channel_post?: Message & Update.Channel; | ||
/** New version of a channel post that is known to the bot and was edited */ | ||
@@ -54,0 +41,0 @@ edited_channel_post?: Message & Update.Edited & Update.Channel; |
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
260439
4208