@telegraf/types
Advanced tools
Comparing version 6.8.1 to 6.9.0
@@ -75,3 +75,3 @@ import type { Chat, User } from "./manage.js"; | ||
id: string; | ||
/** A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB */ | ||
/** A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB */ | ||
photo_url: string; | ||
@@ -123,2 +123,4 @@ /** URL of the thumbnail for the photo */ | ||
parse_mode?: ParseMode; | ||
/** List of special entities that appear in the caption, which can be specified instead of parse_mode */ | ||
caption_entities?: MessageEntity[]; | ||
/** Inline keyboard attached to the message */ | ||
@@ -153,2 +155,4 @@ reply_markup?: InlineKeyboardMarkup; | ||
parse_mode?: ParseMode; | ||
/** List of special entities that appear in the caption, which can be specified instead of parse_mode */ | ||
caption_entities?: MessageEntity[]; | ||
/** Inline keyboard attached to the message */ | ||
@@ -161,3 +165,3 @@ reply_markup?: InlineKeyboardMarkup; | ||
If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content. */ | ||
> If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content. */ | ||
export interface InlineQueryResultVideo { | ||
@@ -238,2 +242,4 @@ /** Type of the result, must be video */ | ||
parse_mode?: ParseMode; | ||
/** List of special entities that appear in the caption, which can be specified instead of parse_mode */ | ||
caption_entities?: MessageEntity[]; | ||
/** Recording duration in seconds */ | ||
@@ -297,5 +303,5 @@ voice_duration?: number; | ||
live_period?: number; | ||
/** The direction in which user is moving, in degrees; 1-360. For active live locations only. */ | ||
/** For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. */ | ||
heading?: number; | ||
/** The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. */ | ||
/** For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. */ | ||
proximity_alert_radius?: number; | ||
@@ -425,2 +431,4 @@ /** Inline keyboard attached to the message */ | ||
parse_mode?: ParseMode; | ||
/** List of special entities that appear in the caption, which can be specified instead of parse_mode */ | ||
caption_entities?: MessageEntity[]; | ||
/** Inline keyboard attached to the message */ | ||
@@ -445,2 +453,4 @@ reply_markup?: InlineKeyboardMarkup; | ||
parse_mode?: ParseMode; | ||
/** List of special entities that appear in the caption, which can be specified instead of parse_mode */ | ||
caption_entities?: MessageEntity[]; | ||
/** Inline keyboard attached to the message */ | ||
@@ -453,4 +463,3 @@ reply_markup?: InlineKeyboardMarkup; | ||
Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them. | ||
*/ | ||
Note: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them. */ | ||
export interface InlineQueryResultCachedSticker { | ||
@@ -532,2 +541,4 @@ /** Type of the result, must be sticker */ | ||
parse_mode?: ParseMode; | ||
/** List of special entities that appear in the caption, which can be specified instead of parse_mode */ | ||
caption_entities?: MessageEntity[]; | ||
/** Inline keyboard attached to the message */ | ||
@@ -534,0 +545,0 @@ reply_markup?: InlineKeyboardMarkup; |
@@ -132,3 +132,3 @@ import type { Location, Message, PhotoSize } from "./message.js"; | ||
emoji_status_custom_emoji_id?: string; | ||
/** Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat. */ | ||
/** Expiration date of the emoji status of the other party in a private chat in Unix time, if any. Returned only in getChat. */ | ||
emoji_status_expiration_date?: number; | ||
@@ -231,2 +231,8 @@ /** Bio of the other party in a private chat. Returned only in getChat. */ | ||
can_pin_messages?: boolean; | ||
/** True, if the administrator can post stories in the channel; channels only */ | ||
can_post_stories?: boolean; | ||
/** True, if the administrator can edit stories posted by other users; channels only */ | ||
can_edit_stories?: boolean; | ||
/** True, if the administrator can delete stories posted by other users */ | ||
can_delete_stories?: boolean; | ||
/** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */ | ||
@@ -284,2 +290,8 @@ can_manage_topics?: boolean; | ||
can_pin_messages?: boolean; | ||
/** True, if the administrator can post stories in the channel; channels only */ | ||
can_post_stories?: boolean; | ||
/** True, if the administrator can edit stories posted by other users; channels only */ | ||
can_edit_stories?: boolean; | ||
/** True, if the administrator can delete stories posted by other users */ | ||
can_delete_stories?: boolean; | ||
/** True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */ | ||
@@ -333,3 +345,3 @@ can_manage_topics?: boolean; | ||
can_manage_topics: boolean; | ||
/** Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever */ | ||
/** Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever */ | ||
until_date: number; | ||
@@ -350,3 +362,3 @@ } | ||
user: User; | ||
/** Date when restrictions will be lifted for this user; unix time */ | ||
/** Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever */ | ||
until_date: number; | ||
@@ -353,0 +365,0 @@ } |
@@ -691,4 +691,8 @@ import type { Chat, File, User } from "./manage.js"; | ||
export interface WriteAccessAllowed { | ||
/** Name of the Web App which was launched from a link */ | ||
/** True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess */ | ||
from_request?: boolean; | ||
/** Name of the Web App, if the access was granted when the Web App was launched from a link */ | ||
web_app_name?: string; | ||
/** True, if the access was granted when the bot was added to the attachment or side menu */ | ||
from_attachment_menu?: boolean; | ||
} | ||
@@ -695,0 +699,0 @@ /** This object represents a service message about a video chat scheduled in the chat. */ |
{ | ||
"name": "@telegraf/types", | ||
"private": false, | ||
"version": "6.8.1", | ||
"version": "6.9.0", | ||
"description": "Type declarations for the Telegram API", | ||
"main": "mod.js", | ||
"main": "index.js", | ||
"repository": { | ||
@@ -24,3 +24,3 @@ "type": "git", | ||
"author": "Telegraf contributors", | ||
"types": "mod.d.ts", | ||
"types": "index.d.ts", | ||
"license": "MIT", | ||
@@ -33,3 +33,3 @@ "bugs": { | ||
"*.d.ts", | ||
"mod.js" | ||
"index.js" | ||
], | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
# Types for the Telegram Bot API [![Deno shield](https://img.shields.io/static/v1?label=Built%20for&message=Deno&style=flat-square&logo=deno&labelColor=000&color=fff)](https://deno.land/x/telegraf_types) | ||
[![Bot API Version](https://img.shields.io/badge/Bot%20API-v6.8-f36caf.svg?style=flat-square&logo=Telegram&labelColor=white&color=blue)](https://core.telegram.org/bots/api) [![NPM version](https://img.shields.io/npm/v/@telegraf/types?style=flat-square&logo=npm&labelColor=fff&color=c53635)](https://npmjs.com/package/@telegraf/types) | ||
[![Bot API Version](https://img.shields.io/badge/Bot%20API-v6.9-f36caf.svg?style=flat-square&logo=Telegram&labelColor=white&color=blue)](https://core.telegram.org/bots/api) [![NPM version](https://img.shields.io/npm/v/@telegraf/types?style=flat-square&logo=npm&labelColor=fff&color=c53635)](https://npmjs.com/package/@telegraf/types) | ||
@@ -5,0 +5,0 @@ This project is a fork of [@KnorpelSenf/typegram](https://github.com/KnorpelSenf/typegram), specialised for Telegraf. Typegram is legacy, and now backported from [@grammyjs/types](https://github.com/grammyjs/types). |
Sorry, the diff of this file is too big to display
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
288940
4319
15