@airgram/core
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -57,2 +57,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Airgram = void 0; | ||
var components_1 = require("./components"); | ||
@@ -158,3 +159,3 @@ var utils_1 = require("./utils"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -243,8 +244,8 @@ }); | ||
Airgram.prototype.createContext = function (_, props) { | ||
var _a, _b; | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var ctx, descriptor, defineProperties, _c; | ||
var ctx, descriptor, defineProperties, _b; | ||
var _this = this; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
@@ -260,9 +261,9 @@ ctx = {}; | ||
}); }; | ||
defineProperties(createState(((_b = (_a = props) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.state) || {})); | ||
defineProperties(createState(((_a = props === null || props === void 0 ? void 0 : props.options) === null || _a === void 0 ? void 0 : _a.state) || {})); | ||
defineProperties({ _: _ }); | ||
defineProperties(props); | ||
_c = defineProperties; | ||
_b = defineProperties; | ||
return [4 /*yield*/, this.getExtraContext(ctx)]; | ||
case 1: | ||
_c.apply(void 0, [_d.sent()]); | ||
_b.apply(void 0, [_c.sent()]); | ||
return [2 /*return*/, ctx]; | ||
@@ -269,0 +270,0 @@ } |
@@ -11,2 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Composer = void 0; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -13,0 +14,0 @@ var noop = function () { }; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./Composer")); | ||
__export(require("./TDLibError")); | ||
__export(require("./TdProvider")); | ||
__exportStar(require("./Composer"), exports); | ||
__exportStar(require("./TDLibError"), exports); | ||
__exportStar(require("./TdProvider"), exports); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TDLibError = void 0; | ||
var TDLibError = /** @class */ (function (_super) { | ||
@@ -18,0 +19,0 @@ __extends(TDLibError, _super); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TdProvider = void 0; | ||
var TdProvider = /** @class */ (function () { | ||
@@ -4,0 +5,0 @@ function TdProvider() { |
26
index.js
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TDLibError = exports.TdProvider = exports.Composer = exports.Airgram = void 0; | ||
var Airgram_1 = require("./Airgram"); | ||
exports.Airgram = Airgram_1.Airgram; | ||
Object.defineProperty(exports, "Airgram", { enumerable: true, get: function () { return Airgram_1.Airgram; } }); | ||
var components_1 = require("./components"); | ||
exports.Composer = components_1.Composer; | ||
exports.TDLibError = components_1.TDLibError; | ||
exports.TdProvider = components_1.TdProvider; | ||
Object.defineProperty(exports, "Composer", { enumerable: true, get: function () { return components_1.Composer; } }); | ||
Object.defineProperty(exports, "TDLibError", { enumerable: true, get: function () { return components_1.TDLibError; } }); | ||
Object.defineProperty(exports, "TdProvider", { enumerable: true, get: function () { return components_1.TdProvider; } }); | ||
__exportStar(require("./types"), exports); | ||
var utils_1 = require("./utils"); | ||
exports.isError = utils_1.isError; | ||
exports.toObject = utils_1.toObject; | ||
exports.on = utils_1.on; | ||
Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return utils_1.isError; } }); | ||
Object.defineProperty(exports, "toObject", { enumerable: true, get: function () { return utils_1.toObject; } }); | ||
Object.defineProperty(exports, "on", { enumerable: true, get: function () { return utils_1.on; } }); |
{ | ||
"name": "@airgram/core", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"private": false, | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "8c7a57823fd92f9060c81deae443da7d7b59a9c8", | ||
"gitHead": "348b6c9f354d477bfc77271f33421e07ecca27a5", | ||
"sideEffects": false, | ||
@@ -14,0 +14,0 @@ "author": "Alexander Krisko", |
@@ -7,2 +7,3 @@ import * as api from './methods'; | ||
addChatMembers: api.addChatMembers; | ||
addChatToList: api.addChatToList; | ||
addContact: api.addContact; | ||
@@ -56,2 +57,3 @@ addCustomServerLanguagePack: api.addCustomServerLanguagePack; | ||
createCall: api.createCall; | ||
createChatFilter: api.createChatFilter; | ||
createNewBasicGroupChat: api.createNewBasicGroupChat; | ||
@@ -66,2 +68,3 @@ createNewSecretChat: api.createNewSecretChat; | ||
deleteAccount: api.deleteAccount; | ||
deleteChatFilter: api.deleteChatFilter; | ||
deleteChatHistory: api.deleteChatHistory; | ||
@@ -84,2 +87,3 @@ deleteChatMessagesFromUser: api.deleteChatMessagesFromUser; | ||
downloadFile: api.downloadFile; | ||
editChatFilter: api.editChatFilter; | ||
editCustomLanguagePackInfo: api.editCustomLanguagePackInfo; | ||
@@ -113,2 +117,3 @@ editInlineMessageCaption: api.editInlineMessageCaption; | ||
getBackgrounds: api.getBackgrounds; | ||
getBankCardInfo: api.getBankCardInfo; | ||
getBasicGroup: api.getBasicGroup; | ||
@@ -121,3 +126,7 @@ getBasicGroupFullInfo: api.getBasicGroupFullInfo; | ||
getChatEventLog: api.getChatEventLog; | ||
getChatFilter: api.getChatFilter; | ||
getChatFilterDefaultIconName: api.getChatFilterDefaultIconName; | ||
getChatFilterDefaultIconNameSync: api.getChatFilterDefaultIconNameSync; | ||
getChatHistory: api.getChatHistory; | ||
getChatListsToAddChat: api.getChatListsToAddChat; | ||
getChatMember: api.getChatMember; | ||
@@ -129,2 +138,4 @@ getChatMessageByDate: api.getChatMessageByDate; | ||
getChatScheduledMessages: api.getChatScheduledMessages; | ||
getChatStatistics: api.getChatStatistics; | ||
getChatStatisticsGraph: api.getChatStatisticsGraph; | ||
getChatStatisticsUrl: api.getChatStatisticsUrl; | ||
@@ -175,2 +186,4 @@ getChats: api.getChats; | ||
getMapThumbnailFile: api.getMapThumbnailFile; | ||
getMarkdownText: api.getMarkdownText; | ||
getMarkdownTextSync: api.getMarkdownTextSync; | ||
getMe: api.getMe; | ||
@@ -200,2 +213,3 @@ getMessage: api.getMessage; | ||
getRecentlyVisitedTMeUrls: api.getRecentlyVisitedTMeUrls; | ||
getRecommendedChatFilters: api.getRecommendedChatFilters; | ||
getRecoveryEmailAddress: api.getRecoveryEmailAddress; | ||
@@ -237,2 +251,4 @@ getRemoteFile: api.getRemoteFile; | ||
optimizeStorage: api.optimizeStorage; | ||
parseMarkdown: api.parseMarkdown; | ||
parseMarkdownSync: api.parseMarkdownSync; | ||
parseTextEntities: api.parseTextEntities; | ||
@@ -262,2 +278,3 @@ parseTextEntitiesSync: api.parseTextEntitiesSync; | ||
removeTopChat: api.removeTopChat; | ||
reorderChatFilters: api.reorderChatFilters; | ||
reorderInstalledStickerSets: api.reorderInstalledStickerSets; | ||
@@ -321,3 +338,2 @@ reportChat: api.reportChat; | ||
setBotUpdatesStatus: api.setBotUpdatesStatus; | ||
setChatChatList: api.setChatChatList; | ||
setChatClientData: api.setChatClientData; | ||
@@ -334,2 +350,3 @@ setChatDescription: api.setChatDescription; | ||
setChatTitle: api.setChatTitle; | ||
setCommands: api.setCommands; | ||
setCustomLanguagePack: api.setCustomLanguagePack; | ||
@@ -341,2 +358,3 @@ setCustomLanguagePackString: api.setCustomLanguagePackString; | ||
setInlineGameScore: api.setInlineGameScore; | ||
setLocation: api.setLocation; | ||
setLogStream: api.setLogStream; | ||
@@ -360,2 +378,3 @@ setLogStreamSync: api.setLogStreamSync; | ||
setStickerPositionInSet: api.setStickerPositionInSet; | ||
setStickerSetThumbnail: api.setStickerSetThumbnail; | ||
setSupergroupStickerSet: api.setSupergroupStickerSet; | ||
@@ -362,0 +381,0 @@ setSupergroupUsername: api.setSupergroupUsername; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./inputs"), exports); | ||
__exportStar(require("./outputs"), exports); | ||
__exportStar(require("./methods"), exports); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./airgram"), exports); | ||
__exportStar(require("./api"), exports); | ||
__exportStar(require("./api-methods"), exports); | ||
__exportStar(require("./api-middleware"), exports); |
@@ -13,2 +13,4 @@ export declare type CallProtocolInputUnion = CallProtocolInput; | ||
maxLayer?: number; | ||
/** List of supported libtgvoip versions */ | ||
libraryVersions?: string[]; | ||
} |
/** Describes a list of chats */ | ||
export declare type ChatListInputUnion = ChatListMainInput | ChatListArchiveInput; | ||
export declare type ChatListInputUnion = ChatListMainInput | ChatListArchiveInput | ChatListFilterInput; | ||
/** A main list of chats */ | ||
@@ -14,1 +14,7 @@ export interface ChatListMainInput { | ||
} | ||
/** A list of chats belonging to a chat filter */ | ||
export interface ChatListFilterInput { | ||
_: 'chatListFilter'; | ||
/** Chat filter identifier */ | ||
chatFilterId?: number; | ||
} |
@@ -8,4 +8,6 @@ import { InputMessageContentInputUnion } from './index'; | ||
replyToMessageId?: number; | ||
/** Point in time (Unix timestamp) when the draft was created */ | ||
date?: number; | ||
/** Content of the message draft; this should always be of type inputMessageText */ | ||
inputMessageText?: InputMessageContentInputUnion; | ||
} |
@@ -20,2 +20,3 @@ export * from './BackgroundFill'; | ||
export * from './InputPassportElementErrorSource'; | ||
export * from './InputSticker'; | ||
export * from './JsonValue'; | ||
@@ -46,4 +47,6 @@ export * from './KeyboardButtonType'; | ||
export * from './AutoDownloadSettings'; | ||
export * from './BotCommand'; | ||
export * from './CallProtocol'; | ||
export * from './ChatEventLogFilters'; | ||
export * from './ChatFilter'; | ||
export * from './ChatLocation'; | ||
@@ -61,3 +64,2 @@ export * from './ChatNotificationSettings'; | ||
export * from './InputPersonalDocument'; | ||
export * from './InputSticker'; | ||
export * from './InputThumbnail'; | ||
@@ -64,0 +66,0 @@ export * from './Invoice'; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./BackgroundFill"), exports); | ||
__exportStar(require("./BackgroundType"), exports); | ||
__exportStar(require("./CallProblem"), exports); | ||
__exportStar(require("./CallbackQueryPayload"), exports); | ||
__exportStar(require("./ChatAction"), exports); | ||
__exportStar(require("./ChatList"), exports); | ||
__exportStar(require("./ChatMemberStatus"), exports); | ||
__exportStar(require("./ChatMembersFilter"), exports); | ||
__exportStar(require("./ChatReportReason"), exports); | ||
__exportStar(require("./DeviceToken"), exports); | ||
__exportStar(require("./FileType"), exports); | ||
__exportStar(require("./InlineKeyboardButtonType"), exports); | ||
__exportStar(require("./InputBackground"), exports); | ||
__exportStar(require("./InputCredentials"), exports); | ||
__exportStar(require("./InputFile"), exports); | ||
__exportStar(require("./InputInlineQueryResult"), exports); | ||
__exportStar(require("./InputMessageContent"), exports); | ||
__exportStar(require("./InputPassportElement"), exports); | ||
__exportStar(require("./InputPassportElementErrorSource"), exports); | ||
__exportStar(require("./InputSticker"), exports); | ||
__exportStar(require("./JsonValue"), exports); | ||
__exportStar(require("./KeyboardButtonType"), exports); | ||
__exportStar(require("./LanguagePackStringValue"), exports); | ||
__exportStar(require("./LogStream"), exports); | ||
__exportStar(require("./MaskPoint"), exports); | ||
__exportStar(require("./MessageSchedulingState"), exports); | ||
__exportStar(require("./NetworkStatisticsEntry"), exports); | ||
__exportStar(require("./NetworkType"), exports); | ||
__exportStar(require("./NotificationSettingsScope"), exports); | ||
__exportStar(require("./OptionValue"), exports); | ||
__exportStar(require("./PassportElementType"), exports); | ||
__exportStar(require("./PollType"), exports); | ||
__exportStar(require("./ProxyType"), exports); | ||
__exportStar(require("./PublicChatType"), exports); | ||
__exportStar(require("./ReplyMarkup"), exports); | ||
__exportStar(require("./SearchMessagesFilter"), exports); | ||
__exportStar(require("./SupergroupMembersFilter"), exports); | ||
__exportStar(require("./TextEntityType"), exports); | ||
__exportStar(require("./TextParseMode"), exports); | ||
__exportStar(require("./TopChatCategory"), exports); | ||
__exportStar(require("./UserPrivacySetting"), exports); | ||
__exportStar(require("./UserPrivacySettingRule"), exports); | ||
__exportStar(require("./AccountTtl"), exports); | ||
__exportStar(require("./Address"), exports); | ||
__exportStar(require("./AutoDownloadSettings"), exports); | ||
__exportStar(require("./BotCommand"), exports); | ||
__exportStar(require("./CallProtocol"), exports); | ||
__exportStar(require("./ChatEventLogFilters"), exports); | ||
__exportStar(require("./ChatFilter"), exports); | ||
__exportStar(require("./ChatLocation"), exports); | ||
__exportStar(require("./ChatNotificationSettings"), exports); | ||
__exportStar(require("./ChatPermissions"), exports); | ||
__exportStar(require("./Contact"), exports); | ||
__exportStar(require("./Date"), exports); | ||
__exportStar(require("./DraftMessage"), exports); | ||
__exportStar(require("./Error"), exports); | ||
__exportStar(require("./FormattedText"), exports); | ||
__exportStar(require("./InlineKeyboardButton"), exports); | ||
__exportStar(require("./InputIdentityDocument"), exports); | ||
__exportStar(require("./InputPassportElementError"), exports); | ||
__exportStar(require("./InputPersonalDocument"), exports); | ||
__exportStar(require("./InputThumbnail"), exports); | ||
__exportStar(require("./Invoice"), exports); | ||
__exportStar(require("./JsonObjectMember"), exports); | ||
__exportStar(require("./KeyboardButton"), exports); | ||
__exportStar(require("./LabeledPricePart"), exports); | ||
__exportStar(require("./LanguagePackInfo"), exports); | ||
__exportStar(require("./LanguagePackString"), exports); | ||
__exportStar(require("./Location"), exports); | ||
__exportStar(require("./MaskPosition"), exports); | ||
__exportStar(require("./OrderInfo"), exports); | ||
__exportStar(require("./PersonalDetails"), exports); | ||
__exportStar(require("./PhoneNumberAuthenticationSettings"), exports); | ||
__exportStar(require("./ScopeNotificationSettings"), exports); | ||
__exportStar(require("./SendMessageOptions"), exports); | ||
__exportStar(require("./ShippingOption"), exports); | ||
__exportStar(require("./TdlibParameters"), exports); | ||
__exportStar(require("./TestInt"), exports); | ||
__exportStar(require("./TestString"), exports); | ||
__exportStar(require("./TextEntity"), exports); | ||
__exportStar(require("./UserPrivacySettingRules"), exports); | ||
__exportStar(require("./Venue"), exports); |
import { ContactInput, InputMessageContentInputUnion, LocationInput, ReplyMarkupInputUnion, VenueInput } from './index'; | ||
/** Represents a single result of an inline query; for bots only */ | ||
export declare type InputInlineQueryResultInputUnion = InputInlineQueryResultAnimatedGifInput | InputInlineQueryResultAnimatedMpeg4Input | InputInlineQueryResultArticleInput | InputInlineQueryResultAudioInput | InputInlineQueryResultContactInput | InputInlineQueryResultDocumentInput | InputInlineQueryResultGameInput | InputInlineQueryResultLocationInput | InputInlineQueryResultPhotoInput | InputInlineQueryResultStickerInput | InputInlineQueryResultVenueInput | InputInlineQueryResultVideoInput | InputInlineQueryResultVoiceNoteInput; | ||
/** Represents a link to an animated GIF */ | ||
export interface InputInlineQueryResultAnimatedGifInput { | ||
_: 'inputInlineQueryResultAnimatedGif'; | ||
export declare type InputInlineQueryResultInputUnion = InputInlineQueryResultAnimationInput | InputInlineQueryResultArticleInput | InputInlineQueryResultAudioInput | InputInlineQueryResultContactInput | InputInlineQueryResultDocumentInput | InputInlineQueryResultGameInput | InputInlineQueryResultLocationInput | InputInlineQueryResultPhotoInput | InputInlineQueryResultStickerInput | InputInlineQueryResultVenueInput | InputInlineQueryResultVideoInput | InputInlineQueryResultVoiceNoteInput; | ||
/** | ||
* Represents a link to an animated GIF or an animated (i.e. without sound) H.264/MPEG-4 | ||
* AVC video | ||
*/ | ||
export interface InputInlineQueryResultAnimationInput { | ||
_: 'inputInlineQueryResultAnimation'; | ||
/** Unique identifier of the query result */ | ||
@@ -11,37 +14,19 @@ id?: string; | ||
title?: string; | ||
/** URL of the static result thumbnail (JPEG or GIF), if it exists */ | ||
/** URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists */ | ||
thumbnailUrl?: string; | ||
/** The URL of the GIF-file (file size must not exceed 1MB) */ | ||
gifUrl?: string; | ||
/** Duration of the GIF, in seconds */ | ||
gifDuration?: number; | ||
/** Width of the GIF */ | ||
gifWidth?: number; | ||
/** Height of the GIF */ | ||
gifHeight?: number; | ||
/** The message reply markup. Must be of type replyMarkupInlineKeyboard or null */ | ||
replyMarkup?: ReplyMarkupInputUnion; | ||
/** | ||
* The content of the message to be sent. Must be one of the following types: InputMessageText, | ||
* InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact | ||
* MIME type of the video thumbnail. If non-empty, must be one of "image/jpeg", "image/gif" | ||
* and "video/mp4" | ||
*/ | ||
inputMessageContent?: InputMessageContentInputUnion; | ||
} | ||
/** Represents a link to an animated (i.e. without sound) H.264/MPEG-4 AVC video */ | ||
export interface InputInlineQueryResultAnimatedMpeg4Input { | ||
_: 'inputInlineQueryResultAnimatedMpeg4'; | ||
/** Unique identifier of the query result */ | ||
id?: string; | ||
/** Title of the result */ | ||
title?: string; | ||
/** URL of the static result thumbnail (JPEG or GIF), if it exists */ | ||
thumbnailUrl?: string; | ||
/** The URL of the MPEG4-file (file size must not exceed 1MB) */ | ||
mpeg4Url?: string; | ||
thumbnailMimeType?: string; | ||
/** The URL of the video file (file size must not exceed 1MB) */ | ||
videoUrl?: string; | ||
/** MIME type of the video file. Must be one of "image/gif" and "video/mp4" */ | ||
videoMimeType?: string; | ||
/** Duration of the video, in seconds */ | ||
mpeg4Duration?: number; | ||
videoDuration?: number; | ||
/** Width of the video */ | ||
mpeg4Width?: number; | ||
videoWidth?: number; | ||
/** Height of the video */ | ||
mpeg4Height?: number; | ||
videoHeight?: number; | ||
/** The message reply markup. Must be of type replyMarkupInlineKeyboard or null */ | ||
@@ -48,0 +33,0 @@ replyMarkup?: ReplyMarkupInputUnion; |
import { ContactInput, FormattedTextInput, InputFileInputUnion, InputThumbnailInput, InvoiceInput, LocationInput, PollTypeInputUnion, VenueInput } from './index'; | ||
/** The content of a message to send */ | ||
export declare type InputMessageContentInputUnion = InputMessageTextInput | InputMessageAnimationInput | InputMessageAudioInput | InputMessageDocumentInput | InputMessagePhotoInput | InputMessageStickerInput | InputMessageVideoInput | InputMessageVideoNoteInput | InputMessageVoiceNoteInput | InputMessageLocationInput | InputMessageVenueInput | InputMessageContactInput | InputMessageGameInput | InputMessageInvoiceInput | InputMessagePollInput | InputMessageForwardedInput; | ||
export declare type InputMessageContentInputUnion = InputMessageTextInput | InputMessageAnimationInput | InputMessageAudioInput | InputMessageDocumentInput | InputMessagePhotoInput | InputMessageStickerInput | InputMessageVideoInput | InputMessageVideoNoteInput | InputMessageVoiceNoteInput | InputMessageLocationInput | InputMessageVenueInput | InputMessageContactInput | InputMessageDiceInput | InputMessageGameInput | InputMessageInvoiceInput | InputMessagePollInput | InputMessageForwardedInput; | ||
/** A text message */ | ||
@@ -25,2 +25,4 @@ export interface InputMessageTextInput { | ||
thumbnail?: InputThumbnailInput; | ||
/** File identifiers of the stickers added to the animation, if applicable */ | ||
addedStickerFileIds?: number[]; | ||
/** Duration of the animation, in seconds */ | ||
@@ -166,2 +168,10 @@ duration?: number; | ||
} | ||
/** A dice message */ | ||
export interface InputMessageDiceInput { | ||
_: 'inputMessageDice'; | ||
/** Emoji on which the dice throw animation is based */ | ||
emoji?: string; | ||
/** True, if a chat message draft should be deleted */ | ||
clearDraft?: boolean; | ||
} | ||
/** A message with a game; not supported for channels or secret chats */ | ||
@@ -218,2 +228,9 @@ export interface InputMessageGameInput { | ||
type?: PollTypeInputUnion; | ||
/** Amount of time the poll will be active after creation, in seconds; for bots only */ | ||
openPeriod?: number; | ||
/** | ||
* Point in time (Unix timestamp) when the poll will be automatically closed; for bots | ||
* only | ||
*/ | ||
closeDate?: number; | ||
/** True, if the poll needs to be sent already closed; for bots only */ | ||
@@ -220,0 +237,0 @@ isClosed?: boolean; |
import { InputFileInputUnion, MaskPositionInput } from './index'; | ||
export declare type InputStickerInputUnion = InputStickerInput; | ||
/** Describes a sticker that should be added to a sticker set */ | ||
export interface InputStickerInput { | ||
_: 'inputSticker'; | ||
/** PNG image with the sticker; must be up to 512 kB in size and fit in a 512x512 square */ | ||
pngSticker?: InputFileInputUnion; | ||
/** Emoji corresponding to the sticker */ | ||
/** Describes a sticker that needs to be added to a sticker set */ | ||
export declare type InputStickerInputUnion = InputStickerStaticInput | InputStickerAnimatedInput; | ||
/** A static sticker in PNG format, which will be converted to WEBP server-side */ | ||
export interface InputStickerStaticInput { | ||
_: 'inputStickerStatic'; | ||
/** PNG image with the sticker; must be up to 512 KB in size and fit in a 512x512 square */ | ||
sticker?: InputFileInputUnion; | ||
/** Emojis corresponding to the sticker */ | ||
emojis?: string; | ||
@@ -13,1 +14,13 @@ /** For masks, position where the mask should be placed; may be null */ | ||
} | ||
/** An animated sticker in TGS format */ | ||
export interface InputStickerAnimatedInput { | ||
_: 'inputStickerAnimated'; | ||
/** | ||
* File with the animated sticker. Only local or uploaded within a week files are supported. | ||
* See https://core.telegram.org/animated_stickers#technical-requirements for technical | ||
* requirements | ||
*/ | ||
sticker?: InputFileInputUnion; | ||
/** Emojis corresponding to the sticker */ | ||
emojis?: string; | ||
} |
@@ -5,3 +5,3 @@ import { InputFileInputUnion } from './index'; | ||
* A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, | ||
* and less than 200 kB in size | ||
* and less than 200 KB in size | ||
*/ | ||
@@ -8,0 +8,0 @@ export interface InputThumbnailInput { |
@@ -0,1 +1,2 @@ | ||
import { FormattedTextInput } from './index'; | ||
/** Describes the type of a poll */ | ||
@@ -17,2 +18,7 @@ export declare type PollTypeInputUnion = PollTypeRegularInput | PollTypeQuizInput; | ||
correctOptionId?: number; | ||
/** | ||
* Text that is shown when the user chooses an incorrect answer or taps on the lamp | ||
* icon, 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll | ||
*/ | ||
explanation?: FormattedTextInput; | ||
} |
@@ -19,3 +19,3 @@ /** Describes the type of a proxy server */ | ||
/** | ||
* Pass true, if the proxy supports only HTTP requests and doesn't support transparent | ||
* Pass true if the proxy supports only HTTP requests and doesn't support transparent | ||
* TCP connections via HTTP CONNECT method | ||
@@ -22,0 +22,0 @@ */ |
/** Represents a filter for message search results */ | ||
export declare type SearchMessagesFilterInputUnion = SearchMessagesFilterEmptyInput | SearchMessagesFilterAnimationInput | SearchMessagesFilterAudioInput | SearchMessagesFilterDocumentInput | SearchMessagesFilterPhotoInput | SearchMessagesFilterVideoInput | SearchMessagesFilterVoiceNoteInput | SearchMessagesFilterPhotoAndVideoInput | SearchMessagesFilterUrlInput | SearchMessagesFilterChatPhotoInput | SearchMessagesFilterCallInput | SearchMessagesFilterMissedCallInput | SearchMessagesFilterVideoNoteInput | SearchMessagesFilterVoiceAndVideoNoteInput | SearchMessagesFilterMentionInput | SearchMessagesFilterUnreadMentionInput; | ||
export declare type SearchMessagesFilterInputUnion = SearchMessagesFilterEmptyInput | SearchMessagesFilterAnimationInput | SearchMessagesFilterAudioInput | SearchMessagesFilterDocumentInput | SearchMessagesFilterPhotoInput | SearchMessagesFilterVideoInput | SearchMessagesFilterVoiceNoteInput | SearchMessagesFilterPhotoAndVideoInput | SearchMessagesFilterUrlInput | SearchMessagesFilterChatPhotoInput | SearchMessagesFilterCallInput | SearchMessagesFilterMissedCallInput | SearchMessagesFilterVideoNoteInput | SearchMessagesFilterVoiceAndVideoNoteInput | SearchMessagesFilterMentionInput | SearchMessagesFilterUnreadMentionInput | SearchMessagesFilterFailedToSendInput; | ||
/** Returns all found messages, no filter is applied */ | ||
@@ -74,1 +74,8 @@ export interface SearchMessagesFilterEmptyInput { | ||
} | ||
/** | ||
* Returns only failed to send messages. This filter can be used only if the message | ||
* database is used | ||
*/ | ||
export interface SearchMessagesFilterFailedToSendInput { | ||
_: 'searchMessagesFilterFailedToSend'; | ||
} |
/** Represents a part of the text which must be formatted differently */ | ||
export declare type TextEntityTypeInputUnion = TextEntityTypeMentionInput | TextEntityTypeHashtagInput | TextEntityTypeCashtagInput | TextEntityTypeBotCommandInput | TextEntityTypeUrlInput | TextEntityTypeEmailAddressInput | TextEntityTypePhoneNumberInput | TextEntityTypeBoldInput | TextEntityTypeItalicInput | TextEntityTypeUnderlineInput | TextEntityTypeStrikethroughInput | TextEntityTypeCodeInput | TextEntityTypePreInput | TextEntityTypePreCodeInput | TextEntityTypeTextUrlInput | TextEntityTypeMentionNameInput; | ||
export declare type TextEntityTypeInputUnion = TextEntityTypeMentionInput | TextEntityTypeHashtagInput | TextEntityTypeCashtagInput | TextEntityTypeBotCommandInput | TextEntityTypeUrlInput | TextEntityTypeEmailAddressInput | TextEntityTypePhoneNumberInput | TextEntityTypeBankCardNumberInput | TextEntityTypeBoldInput | TextEntityTypeItalicInput | TextEntityTypeUnderlineInput | TextEntityTypeStrikethroughInput | TextEntityTypeCodeInput | TextEntityTypePreInput | TextEntityTypePreCodeInput | TextEntityTypeTextUrlInput | TextEntityTypeMentionNameInput; | ||
/** A mention of a user by their username */ | ||
@@ -37,2 +37,9 @@ export interface TextEntityTypeMentionInput { | ||
} | ||
/** | ||
* A bank card number. The getBankCardInfo method can be used to get information about | ||
* the bank card | ||
*/ | ||
export interface TextEntityTypeBankCardNumberInput { | ||
_: 'textEntityTypeBankCardNumber'; | ||
} | ||
/** A bold text */ | ||
@@ -39,0 +46,0 @@ export interface TextEntityTypeBoldInput { |
/** Describes the way the text should be parsed for TextEntities */ | ||
export declare type TextParseModeInputUnion = TextParseModeMarkdownInput | TextParseModeHtmlInput; | ||
/** The text should be parsed in markdown-style */ | ||
/** The text uses Markdown-style formatting */ | ||
export interface TextParseModeMarkdownInput { | ||
_: 'textParseModeMarkdown'; | ||
/** | ||
* Version of the parser: 0 or 1 - Bot API Markdown parse mode, 2 - Bot API MarkdownV2 | ||
* parse mode | ||
* Version of the parser: 0 or 1 - Telegram Bot API "Markdown" parse mode, 2 - Telegram | ||
* Bot API "MarkdownV2" parse mode | ||
*/ | ||
version?: number; | ||
} | ||
/** The text should be parsed in HTML-style */ | ||
/** The text uses HTML-style formatting. The same as Telegram Bot API "HTML" parse mode */ | ||
export interface TextParseModeHtmlInput { | ||
_: 'textParseModeHTML'; | ||
} |
import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
import { InputStickerInput } from '../inputs'; | ||
import { InputStickerInputUnion } from '../inputs'; | ||
import { StickerSetUnion } from '../outputs'; | ||
@@ -7,3 +7,3 @@ export interface AddStickerToSetParams { | ||
name?: string; | ||
sticker?: InputStickerInput; | ||
sticker?: InputStickerInputUnion; | ||
} | ||
@@ -15,3 +15,3 @@ /** | ||
* @param {string} [params.name] - Sticker set name | ||
* @param {InputStickerInput} [params.sticker] - Sticker to add to the set | ||
* @param {InputStickerInputUnion} [params.sticker] - Sticker to add to the set | ||
* @param {ApiRequestOptions} options | ||
@@ -18,0 +18,0 @@ * @returns {Promise<ApiResponse<AddStickerToSetParams, StickerSetUnion>>} |
import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
import { InputStickerInput } from '../inputs'; | ||
import { InputStickerInputUnion } from '../inputs'; | ||
import { StickerSetUnion } from '../outputs'; | ||
@@ -9,3 +9,3 @@ export interface CreateNewStickerSetParams { | ||
isMasks?: boolean; | ||
stickers?: InputStickerInput[]; | ||
stickers?: InputStickerInputUnion[]; | ||
} | ||
@@ -20,5 +20,6 @@ /** | ||
* case insensitive); 1-64 characters | ||
* @param {boolean} [params.isMasks] - True, if stickers are masks | ||
* @param {InputStickerInput[]} [params.stickers] - List of stickers to be added | ||
* to the set | ||
* @param {boolean} [params.isMasks] - True, if stickers are masks. Animated stickers | ||
* can't be masks | ||
* @param {InputStickerInputUnion[]} [params.stickers] - List of stickers to be added | ||
* to the set; must be non-empty. All stickers must be of the same type | ||
* @param {ApiRequestOptions} options | ||
@@ -25,0 +26,0 @@ * @returns {Promise<ApiResponse<CreateNewStickerSetParams, StickerSetUnion>>} |
import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
import { AutoDownloadSettingsPresetsUnion } from '../outputs'; | ||
/** | ||
* Returns auto-download settings presets for the currently logged in user | ||
* Returns auto-download settings presets for the current user | ||
* @param {ApiRequestOptions} options | ||
@@ -6,0 +6,0 @@ * @returns {Promise<ApiResponse<never, AutoDownloadSettingsPresetsUnion>>} |
@@ -11,4 +11,4 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
/** | ||
* Returns an ordered list of chats in a chat list. Chats are sorted by the pair (order, | ||
* chat_id) in decreasing order. (For example, to get a list of chats from the beginning, | ||
* Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, | ||
* chat.id) in descending order. (For example, to get a list of chats from the beginning, | ||
* the offset_order should be equal to a biggest signed 64-bit number 9223372036854775807 | ||
@@ -15,0 +15,0 @@ * == 2^63 - 1). For optimal performance the number of returned chats is chosen by the |
@@ -9,4 +9,4 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
/** | ||
* Returns an HTTP URL with the chat statistics. Currently this method can be used only | ||
* for channels. Can be used only if SupergroupFullInfo.can_view_statistics == true | ||
* Returns an HTTP URL with the chat statistics. Currently this method of getting the | ||
* statistics is disabled and can be deleted in the future | ||
* @param {Object} params | ||
@@ -13,0 +13,0 @@ * @param {number} [params.chatId] - Chat identifier |
import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
import { TextUnion } from '../outputs'; | ||
/** | ||
* Uses current user IP to found their country. Returns two-letter ISO 3166-1 alpha-2 | ||
* country code. Can be called before authorization | ||
* Uses current user IP address to find their country. Returns two-letter ISO 3166-1 | ||
* alpha-2 country code. Can be called before authorization | ||
* @param {ApiRequestOptions} options | ||
@@ -7,0 +7,0 @@ * @returns {Promise<ApiResponse<never, TextUnion>>} |
@@ -7,5 +7,5 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
/** | ||
* Returns all entities (mentions, hashtags, cashtags, bot commands, URLs, and email | ||
* addresses) contained in the text. This is an offline method. Can be called before | ||
* authorization. Can be called synchronously | ||
* Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, | ||
* URLs, and email addresses) contained in the text. This is an offline method. Can | ||
* be called before authorization. Can be called synchronously | ||
* @param {Object} params | ||
@@ -12,0 +12,0 @@ * @param {string} [params.text] - The text in which to look for entites |
import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
import { StickerSetsUnion } from '../outputs'; | ||
export interface GetTrendingStickerSetsParams { | ||
offset?: number; | ||
limit?: number; | ||
} | ||
/** | ||
* Returns a list of trending sticker sets | ||
* Returns a list of trending sticker sets. For the optimal performance the number of | ||
* returned sticker sets is chosen by the library | ||
* @param {Object} params | ||
* @param {number} [params.offset] - The offset from which to return the sticker | ||
* sets; must be non-negative | ||
* @param {number} [params.limit] - The maximum number of sticker sets to be returned; | ||
* must be non-negative. Fewer sticker sets may be returned than specified by the limit, | ||
* even if the end of the list has not been reached | ||
* @param {ApiRequestOptions} options | ||
* @returns {Promise<ApiResponse<never, StickerSetsUnion>>} | ||
* @returns {Promise<ApiResponse<GetTrendingStickerSetsParams, StickerSetsUnion>>} | ||
*/ | ||
export declare type getTrendingStickerSets = (params?: never, options?: ApiRequestOptions) => Promise<ApiResponse<never, StickerSetsUnion>>; | ||
export declare type getTrendingStickerSets = (params?: GetTrendingStickerSetsParams, options?: ApiRequestOptions) => Promise<ApiResponse<GetTrendingStickerSetsParams, StickerSetsUnion>>; |
@@ -5,2 +5,3 @@ export * from './acceptCall'; | ||
export * from './addChatMembers'; | ||
export * from './addChatToList'; | ||
export * from './addContact'; | ||
@@ -52,2 +53,3 @@ export * from './addCustomServerLanguagePack'; | ||
export * from './createCall'; | ||
export * from './createChatFilter'; | ||
export * from './createNewBasicGroupChat'; | ||
@@ -62,2 +64,3 @@ export * from './createNewSecretChat'; | ||
export * from './deleteAccount'; | ||
export * from './deleteChatFilter'; | ||
export * from './deleteChatHistory'; | ||
@@ -80,2 +83,3 @@ export * from './deleteChatMessagesFromUser'; | ||
export * from './downloadFile'; | ||
export * from './editChatFilter'; | ||
export * from './editCustomLanguagePackInfo'; | ||
@@ -109,2 +113,3 @@ export * from './editInlineMessageCaption'; | ||
export * from './getBackgrounds'; | ||
export * from './getBankCardInfo'; | ||
export * from './getBasicGroup'; | ||
@@ -117,3 +122,6 @@ export * from './getBasicGroupFullInfo'; | ||
export * from './getChatEventLog'; | ||
export * from './getChatFilter'; | ||
export * from './getChatFilterDefaultIconName'; | ||
export * from './getChatHistory'; | ||
export * from './getChatListsToAddChat'; | ||
export * from './getChatMember'; | ||
@@ -125,2 +133,4 @@ export * from './getChatMessageByDate'; | ||
export * from './getChatScheduledMessages'; | ||
export * from './getChatStatistics'; | ||
export * from './getChatStatisticsGraph'; | ||
export * from './getChatStatisticsUrl'; | ||
@@ -162,2 +172,3 @@ export * from './getChats'; | ||
export * from './getMapThumbnailFile'; | ||
export * from './getMarkdownText'; | ||
export * from './getMe'; | ||
@@ -186,2 +197,3 @@ export * from './getMessage'; | ||
export * from './getRecentlyVisitedTMeUrls'; | ||
export * from './getRecommendedChatFilters'; | ||
export * from './getRecoveryEmailAddress'; | ||
@@ -222,2 +234,3 @@ export * from './getRemoteFile'; | ||
export * from './optimizeStorage'; | ||
export * from './parseMarkdown'; | ||
export * from './parseTextEntities'; | ||
@@ -246,2 +259,3 @@ export * from './pinChatMessage'; | ||
export * from './removeTopChat'; | ||
export * from './reorderChatFilters'; | ||
export * from './reorderInstalledStickerSets'; | ||
@@ -305,3 +319,2 @@ export * from './reportChat'; | ||
export * from './setBotUpdatesStatus'; | ||
export * from './setChatChatList'; | ||
export * from './setChatClientData'; | ||
@@ -318,2 +331,3 @@ export * from './setChatDescription'; | ||
export * from './setChatTitle'; | ||
export * from './setCommands'; | ||
export * from './setCustomLanguagePack'; | ||
@@ -325,2 +339,3 @@ export * from './setCustomLanguagePackString'; | ||
export * from './setInlineGameScore'; | ||
export * from './setLocation'; | ||
export * from './setLogStream'; | ||
@@ -341,2 +356,3 @@ export * from './setLogTagVerbosityLevel'; | ||
export * from './setStickerPositionInSet'; | ||
export * from './setStickerSetThumbnail'; | ||
export * from './setSupergroupStickerSet'; | ||
@@ -343,0 +359,0 @@ export * from './setSupergroupUsername'; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./acceptCall"), exports); | ||
__exportStar(require("./acceptTermsOfService"), exports); | ||
__exportStar(require("./addChatMember"), exports); | ||
__exportStar(require("./addChatMembers"), exports); | ||
__exportStar(require("./addChatToList"), exports); | ||
__exportStar(require("./addContact"), exports); | ||
__exportStar(require("./addCustomServerLanguagePack"), exports); | ||
__exportStar(require("./addFavoriteSticker"), exports); | ||
__exportStar(require("./addLocalMessage"), exports); | ||
__exportStar(require("./addLogMessage"), exports); | ||
__exportStar(require("./addNetworkStatistics"), exports); | ||
__exportStar(require("./addProxy"), exports); | ||
__exportStar(require("./addRecentSticker"), exports); | ||
__exportStar(require("./addRecentlyFoundChat"), exports); | ||
__exportStar(require("./addSavedAnimation"), exports); | ||
__exportStar(require("./addStickerToSet"), exports); | ||
__exportStar(require("./answerCallbackQuery"), exports); | ||
__exportStar(require("./answerCustomQuery"), exports); | ||
__exportStar(require("./answerInlineQuery"), exports); | ||
__exportStar(require("./answerPreCheckoutQuery"), exports); | ||
__exportStar(require("./answerShippingQuery"), exports); | ||
__exportStar(require("./blockUser"), exports); | ||
__exportStar(require("./canTransferOwnership"), exports); | ||
__exportStar(require("./cancelDownloadFile"), exports); | ||
__exportStar(require("./cancelUploadFile"), exports); | ||
__exportStar(require("./changeImportedContacts"), exports); | ||
__exportStar(require("./changePhoneNumber"), exports); | ||
__exportStar(require("./changeStickerSet"), exports); | ||
__exportStar(require("./checkAuthenticationBotToken"), exports); | ||
__exportStar(require("./checkAuthenticationCode"), exports); | ||
__exportStar(require("./checkAuthenticationPassword"), exports); | ||
__exportStar(require("./checkChangePhoneNumberCode"), exports); | ||
__exportStar(require("./checkChatInviteLink"), exports); | ||
__exportStar(require("./checkChatUsername"), exports); | ||
__exportStar(require("./checkCreatedPublicChatsLimit"), exports); | ||
__exportStar(require("./checkDatabaseEncryptionKey"), exports); | ||
__exportStar(require("./checkEmailAddressVerificationCode"), exports); | ||
__exportStar(require("./checkPhoneNumberConfirmationCode"), exports); | ||
__exportStar(require("./checkPhoneNumberVerificationCode"), exports); | ||
__exportStar(require("./checkRecoveryEmailAddressCode"), exports); | ||
__exportStar(require("./cleanFileName"), exports); | ||
__exportStar(require("./clearAllDraftMessages"), exports); | ||
__exportStar(require("./clearImportedContacts"), exports); | ||
__exportStar(require("./clearRecentStickers"), exports); | ||
__exportStar(require("./clearRecentlyFoundChats"), exports); | ||
__exportStar(require("./close"), exports); | ||
__exportStar(require("./closeChat"), exports); | ||
__exportStar(require("./closeSecretChat"), exports); | ||
__exportStar(require("./confirmQrCodeAuthentication"), exports); | ||
__exportStar(require("./createBasicGroupChat"), exports); | ||
__exportStar(require("./createCall"), exports); | ||
__exportStar(require("./createChatFilter"), exports); | ||
__exportStar(require("./createNewBasicGroupChat"), exports); | ||
__exportStar(require("./createNewSecretChat"), exports); | ||
__exportStar(require("./createNewStickerSet"), exports); | ||
__exportStar(require("./createNewSupergroupChat"), exports); | ||
__exportStar(require("./createPrivateChat"), exports); | ||
__exportStar(require("./createSecretChat"), exports); | ||
__exportStar(require("./createSupergroupChat"), exports); | ||
__exportStar(require("./createTemporaryPassword"), exports); | ||
__exportStar(require("./deleteAccount"), exports); | ||
__exportStar(require("./deleteChatFilter"), exports); | ||
__exportStar(require("./deleteChatHistory"), exports); | ||
__exportStar(require("./deleteChatMessagesFromUser"), exports); | ||
__exportStar(require("./deleteChatReplyMarkup"), exports); | ||
__exportStar(require("./deleteFile"), exports); | ||
__exportStar(require("./deleteLanguagePack"), exports); | ||
__exportStar(require("./deleteMessages"), exports); | ||
__exportStar(require("./deletePassportElement"), exports); | ||
__exportStar(require("./deleteProfilePhoto"), exports); | ||
__exportStar(require("./deleteSavedCredentials"), exports); | ||
__exportStar(require("./deleteSavedOrderInfo"), exports); | ||
__exportStar(require("./deleteSupergroup"), exports); | ||
__exportStar(require("./destroy"), exports); | ||
__exportStar(require("./disableProxy"), exports); | ||
__exportStar(require("./discardCall"), exports); | ||
__exportStar(require("./disconnectAllWebsites"), exports); | ||
__exportStar(require("./disconnectWebsite"), exports); | ||
__exportStar(require("./downloadFile"), exports); | ||
__exportStar(require("./editChatFilter"), exports); | ||
__exportStar(require("./editCustomLanguagePackInfo"), exports); | ||
__exportStar(require("./editInlineMessageCaption"), exports); | ||
__exportStar(require("./editInlineMessageLiveLocation"), exports); | ||
__exportStar(require("./editInlineMessageMedia"), exports); | ||
__exportStar(require("./editInlineMessageReplyMarkup"), exports); | ||
__exportStar(require("./editInlineMessageText"), exports); | ||
__exportStar(require("./editMessageCaption"), exports); | ||
__exportStar(require("./editMessageLiveLocation"), exports); | ||
__exportStar(require("./editMessageMedia"), exports); | ||
__exportStar(require("./editMessageReplyMarkup"), exports); | ||
__exportStar(require("./editMessageSchedulingState"), exports); | ||
__exportStar(require("./editMessageText"), exports); | ||
__exportStar(require("./editProxy"), exports); | ||
__exportStar(require("./enableProxy"), exports); | ||
__exportStar(require("./finishFileGeneration"), exports); | ||
__exportStar(require("./forwardMessages"), exports); | ||
__exportStar(require("./generateChatInviteLink"), exports); | ||
__exportStar(require("./getAccountTtl"), exports); | ||
__exportStar(require("./getActiveLiveLocationMessages"), exports); | ||
__exportStar(require("./getActiveSessions"), exports); | ||
__exportStar(require("./getAllPassportElements"), exports); | ||
__exportStar(require("./getApplicationConfig"), exports); | ||
__exportStar(require("./getArchivedStickerSets"), exports); | ||
__exportStar(require("./getAttachedStickerSets"), exports); | ||
__exportStar(require("./getAuthorizationState"), exports); | ||
__exportStar(require("./getAutoDownloadSettingsPresets"), exports); | ||
__exportStar(require("./getBackgroundUrl"), exports); | ||
__exportStar(require("./getBackgrounds"), exports); | ||
__exportStar(require("./getBankCardInfo"), exports); | ||
__exportStar(require("./getBasicGroup"), exports); | ||
__exportStar(require("./getBasicGroupFullInfo"), exports); | ||
__exportStar(require("./getBlockedUsers"), exports); | ||
__exportStar(require("./getCallbackQueryAnswer"), exports); | ||
__exportStar(require("./getChat"), exports); | ||
__exportStar(require("./getChatAdministrators"), exports); | ||
__exportStar(require("./getChatEventLog"), exports); | ||
__exportStar(require("./getChatFilter"), exports); | ||
__exportStar(require("./getChatFilterDefaultIconName"), exports); | ||
__exportStar(require("./getChatHistory"), exports); | ||
__exportStar(require("./getChatListsToAddChat"), exports); | ||
__exportStar(require("./getChatMember"), exports); | ||
__exportStar(require("./getChatMessageByDate"), exports); | ||
__exportStar(require("./getChatMessageCount"), exports); | ||
__exportStar(require("./getChatNotificationSettingsExceptions"), exports); | ||
__exportStar(require("./getChatPinnedMessage"), exports); | ||
__exportStar(require("./getChatScheduledMessages"), exports); | ||
__exportStar(require("./getChatStatistics"), exports); | ||
__exportStar(require("./getChatStatisticsGraph"), exports); | ||
__exportStar(require("./getChatStatisticsUrl"), exports); | ||
__exportStar(require("./getChats"), exports); | ||
__exportStar(require("./getConnectedWebsites"), exports); | ||
__exportStar(require("./getContacts"), exports); | ||
__exportStar(require("./getCountryCode"), exports); | ||
__exportStar(require("./getCreatedPublicChats"), exports); | ||
__exportStar(require("./getCurrentState"), exports); | ||
__exportStar(require("./getDatabaseStatistics"), exports); | ||
__exportStar(require("./getDeepLinkInfo"), exports); | ||
__exportStar(require("./getEmojiSuggestionsUrl"), exports); | ||
__exportStar(require("./getFavoriteStickers"), exports); | ||
__exportStar(require("./getFile"), exports); | ||
__exportStar(require("./getFileDownloadedPrefixSize"), exports); | ||
__exportStar(require("./getFileExtension"), exports); | ||
__exportStar(require("./getFileMimeType"), exports); | ||
__exportStar(require("./getGameHighScores"), exports); | ||
__exportStar(require("./getGroupsInCommon"), exports); | ||
__exportStar(require("./getImportedContactCount"), exports); | ||
__exportStar(require("./getInactiveSupergroupChats"), exports); | ||
__exportStar(require("./getInlineGameHighScores"), exports); | ||
__exportStar(require("./getInlineQueryResults"), exports); | ||
__exportStar(require("./getInstalledStickerSets"), exports); | ||
__exportStar(require("./getInviteText"), exports); | ||
__exportStar(require("./getJsonString"), exports); | ||
__exportStar(require("./getJsonValue"), exports); | ||
__exportStar(require("./getLanguagePackInfo"), exports); | ||
__exportStar(require("./getLanguagePackString"), exports); | ||
__exportStar(require("./getLanguagePackStrings"), exports); | ||
__exportStar(require("./getLocalizationTargetInfo"), exports); | ||
__exportStar(require("./getLogStream"), exports); | ||
__exportStar(require("./getLogTagVerbosityLevel"), exports); | ||
__exportStar(require("./getLogTags"), exports); | ||
__exportStar(require("./getLogVerbosityLevel"), exports); | ||
__exportStar(require("./getLoginUrl"), exports); | ||
__exportStar(require("./getLoginUrlInfo"), exports); | ||
__exportStar(require("./getMapThumbnailFile"), exports); | ||
__exportStar(require("./getMarkdownText"), exports); | ||
__exportStar(require("./getMe"), exports); | ||
__exportStar(require("./getMessage"), exports); | ||
__exportStar(require("./getMessageLink"), exports); | ||
__exportStar(require("./getMessageLinkInfo"), exports); | ||
__exportStar(require("./getMessageLocally"), exports); | ||
__exportStar(require("./getMessages"), exports); | ||
__exportStar(require("./getNetworkStatistics"), exports); | ||
__exportStar(require("./getOption"), exports); | ||
__exportStar(require("./getPassportAuthorizationForm"), exports); | ||
__exportStar(require("./getPassportAuthorizationFormAvailableElements"), exports); | ||
__exportStar(require("./getPassportElement"), exports); | ||
__exportStar(require("./getPasswordState"), exports); | ||
__exportStar(require("./getPaymentForm"), exports); | ||
__exportStar(require("./getPaymentReceipt"), exports); | ||
__exportStar(require("./getPollVoters"), exports); | ||
__exportStar(require("./getPreferredCountryLanguage"), exports); | ||
__exportStar(require("./getProxies"), exports); | ||
__exportStar(require("./getProxyLink"), exports); | ||
__exportStar(require("./getPublicMessageLink"), exports); | ||
__exportStar(require("./getPushReceiverId"), exports); | ||
__exportStar(require("./getRecentInlineBots"), exports); | ||
__exportStar(require("./getRecentStickers"), exports); | ||
__exportStar(require("./getRecentlyVisitedTMeUrls"), exports); | ||
__exportStar(require("./getRecommendedChatFilters"), exports); | ||
__exportStar(require("./getRecoveryEmailAddress"), exports); | ||
__exportStar(require("./getRemoteFile"), exports); | ||
__exportStar(require("./getRepliedMessage"), exports); | ||
__exportStar(require("./getSavedAnimations"), exports); | ||
__exportStar(require("./getSavedOrderInfo"), exports); | ||
__exportStar(require("./getScopeNotificationSettings"), exports); | ||
__exportStar(require("./getSecretChat"), exports); | ||
__exportStar(require("./getStickerEmojis"), exports); | ||
__exportStar(require("./getStickerSet"), exports); | ||
__exportStar(require("./getStickers"), exports); | ||
__exportStar(require("./getStorageStatistics"), exports); | ||
__exportStar(require("./getStorageStatisticsFast"), exports); | ||
__exportStar(require("./getSuitableDiscussionChats"), exports); | ||
__exportStar(require("./getSupergroup"), exports); | ||
__exportStar(require("./getSupergroupFullInfo"), exports); | ||
__exportStar(require("./getSupergroupMembers"), exports); | ||
__exportStar(require("./getSupportUser"), exports); | ||
__exportStar(require("./getTemporaryPasswordState"), exports); | ||
__exportStar(require("./getTextEntities"), exports); | ||
__exportStar(require("./getTopChats"), exports); | ||
__exportStar(require("./getTrendingStickerSets"), exports); | ||
__exportStar(require("./getUser"), exports); | ||
__exportStar(require("./getUserFullInfo"), exports); | ||
__exportStar(require("./getUserPrivacySettingRules"), exports); | ||
__exportStar(require("./getUserProfilePhotos"), exports); | ||
__exportStar(require("./getWebPageInstantView"), exports); | ||
__exportStar(require("./getWebPagePreview"), exports); | ||
__exportStar(require("./importContacts"), exports); | ||
__exportStar(require("./joinChat"), exports); | ||
__exportStar(require("./joinChatByInviteLink"), exports); | ||
__exportStar(require("./leaveChat"), exports); | ||
__exportStar(require("./logOut"), exports); | ||
__exportStar(require("./openChat"), exports); | ||
__exportStar(require("./openMessageContent"), exports); | ||
__exportStar(require("./optimizeStorage"), exports); | ||
__exportStar(require("./parseMarkdown"), exports); | ||
__exportStar(require("./parseTextEntities"), exports); | ||
__exportStar(require("./pinChatMessage"), exports); | ||
__exportStar(require("./pingProxy"), exports); | ||
__exportStar(require("./processPushNotification"), exports); | ||
__exportStar(require("./readAllChatMentions"), exports); | ||
__exportStar(require("./readFilePart"), exports); | ||
__exportStar(require("./recoverAuthenticationPassword"), exports); | ||
__exportStar(require("./recoverPassword"), exports); | ||
__exportStar(require("./registerDevice"), exports); | ||
__exportStar(require("./registerUser"), exports); | ||
__exportStar(require("./removeBackground"), exports); | ||
__exportStar(require("./removeChatActionBar"), exports); | ||
__exportStar(require("./removeContacts"), exports); | ||
__exportStar(require("./removeFavoriteSticker"), exports); | ||
__exportStar(require("./removeNotification"), exports); | ||
__exportStar(require("./removeNotificationGroup"), exports); | ||
__exportStar(require("./removeProxy"), exports); | ||
__exportStar(require("./removeRecentHashtag"), exports); | ||
__exportStar(require("./removeRecentSticker"), exports); | ||
__exportStar(require("./removeRecentlyFoundChat"), exports); | ||
__exportStar(require("./removeSavedAnimation"), exports); | ||
__exportStar(require("./removeStickerFromSet"), exports); | ||
__exportStar(require("./removeTopChat"), exports); | ||
__exportStar(require("./reorderChatFilters"), exports); | ||
__exportStar(require("./reorderInstalledStickerSets"), exports); | ||
__exportStar(require("./reportChat"), exports); | ||
__exportStar(require("./reportSupergroupSpam"), exports); | ||
__exportStar(require("./requestAuthenticationPasswordRecovery"), exports); | ||
__exportStar(require("./requestPasswordRecovery"), exports); | ||
__exportStar(require("./requestQrCodeAuthentication"), exports); | ||
__exportStar(require("./resendAuthenticationCode"), exports); | ||
__exportStar(require("./resendChangePhoneNumberCode"), exports); | ||
__exportStar(require("./resendEmailAddressVerificationCode"), exports); | ||
__exportStar(require("./resendMessages"), exports); | ||
__exportStar(require("./resendPhoneNumberConfirmationCode"), exports); | ||
__exportStar(require("./resendPhoneNumberVerificationCode"), exports); | ||
__exportStar(require("./resendRecoveryEmailAddressCode"), exports); | ||
__exportStar(require("./resetAllNotificationSettings"), exports); | ||
__exportStar(require("./resetBackgrounds"), exports); | ||
__exportStar(require("./resetNetworkStatistics"), exports); | ||
__exportStar(require("./saveApplicationLogEvent"), exports); | ||
__exportStar(require("./searchBackground"), exports); | ||
__exportStar(require("./searchCallMessages"), exports); | ||
__exportStar(require("./searchChatMembers"), exports); | ||
__exportStar(require("./searchChatMessages"), exports); | ||
__exportStar(require("./searchChatRecentLocationMessages"), exports); | ||
__exportStar(require("./searchChats"), exports); | ||
__exportStar(require("./searchChatsNearby"), exports); | ||
__exportStar(require("./searchChatsOnServer"), exports); | ||
__exportStar(require("./searchContacts"), exports); | ||
__exportStar(require("./searchEmojis"), exports); | ||
__exportStar(require("./searchHashtags"), exports); | ||
__exportStar(require("./searchInstalledStickerSets"), exports); | ||
__exportStar(require("./searchMessages"), exports); | ||
__exportStar(require("./searchPublicChat"), exports); | ||
__exportStar(require("./searchPublicChats"), exports); | ||
__exportStar(require("./searchSecretMessages"), exports); | ||
__exportStar(require("./searchStickerSet"), exports); | ||
__exportStar(require("./searchStickerSets"), exports); | ||
__exportStar(require("./searchStickers"), exports); | ||
__exportStar(require("./sendBotStartMessage"), exports); | ||
__exportStar(require("./sendCallDebugInformation"), exports); | ||
__exportStar(require("./sendCallRating"), exports); | ||
__exportStar(require("./sendChatAction"), exports); | ||
__exportStar(require("./sendChatScreenshotTakenNotification"), exports); | ||
__exportStar(require("./sendChatSetTtlMessage"), exports); | ||
__exportStar(require("./sendCustomRequest"), exports); | ||
__exportStar(require("./sendEmailAddressVerificationCode"), exports); | ||
__exportStar(require("./sendInlineQueryResultMessage"), exports); | ||
__exportStar(require("./sendMessage"), exports); | ||
__exportStar(require("./sendMessageAlbum"), exports); | ||
__exportStar(require("./sendPassportAuthorizationForm"), exports); | ||
__exportStar(require("./sendPaymentForm"), exports); | ||
__exportStar(require("./sendPhoneNumberConfirmationCode"), exports); | ||
__exportStar(require("./sendPhoneNumberVerificationCode"), exports); | ||
__exportStar(require("./setAccountTtl"), exports); | ||
__exportStar(require("./setAlarm"), exports); | ||
__exportStar(require("./setAuthenticationPhoneNumber"), exports); | ||
__exportStar(require("./setAutoDownloadSettings"), exports); | ||
__exportStar(require("./setBackground"), exports); | ||
__exportStar(require("./setBio"), exports); | ||
__exportStar(require("./setBotUpdatesStatus"), exports); | ||
__exportStar(require("./setChatClientData"), exports); | ||
__exportStar(require("./setChatDescription"), exports); | ||
__exportStar(require("./setChatDiscussionGroup"), exports); | ||
__exportStar(require("./setChatDraftMessage"), exports); | ||
__exportStar(require("./setChatLocation"), exports); | ||
__exportStar(require("./setChatMemberStatus"), exports); | ||
__exportStar(require("./setChatNotificationSettings"), exports); | ||
__exportStar(require("./setChatPermissions"), exports); | ||
__exportStar(require("./setChatPhoto"), exports); | ||
__exportStar(require("./setChatSlowModeDelay"), exports); | ||
__exportStar(require("./setChatTitle"), exports); | ||
__exportStar(require("./setCommands"), exports); | ||
__exportStar(require("./setCustomLanguagePack"), exports); | ||
__exportStar(require("./setCustomLanguagePackString"), exports); | ||
__exportStar(require("./setDatabaseEncryptionKey"), exports); | ||
__exportStar(require("./setFileGenerationProgress"), exports); | ||
__exportStar(require("./setGameScore"), exports); | ||
__exportStar(require("./setInlineGameScore"), exports); | ||
__exportStar(require("./setLocation"), exports); | ||
__exportStar(require("./setLogStream"), exports); | ||
__exportStar(require("./setLogTagVerbosityLevel"), exports); | ||
__exportStar(require("./setLogVerbosityLevel"), exports); | ||
__exportStar(require("./setName"), exports); | ||
__exportStar(require("./setNetworkType"), exports); | ||
__exportStar(require("./setOption"), exports); | ||
__exportStar(require("./setPassportElement"), exports); | ||
__exportStar(require("./setPassportElementErrors"), exports); | ||
__exportStar(require("./setPassword"), exports); | ||
__exportStar(require("./setPinnedChats"), exports); | ||
__exportStar(require("./setPollAnswer"), exports); | ||
__exportStar(require("./setProfilePhoto"), exports); | ||
__exportStar(require("./setRecoveryEmailAddress"), exports); | ||
__exportStar(require("./setScopeNotificationSettings"), exports); | ||
__exportStar(require("./setStickerPositionInSet"), exports); | ||
__exportStar(require("./setStickerSetThumbnail"), exports); | ||
__exportStar(require("./setSupergroupStickerSet"), exports); | ||
__exportStar(require("./setSupergroupUsername"), exports); | ||
__exportStar(require("./setTdlibParameters"), exports); | ||
__exportStar(require("./setUserPrivacySettingRules"), exports); | ||
__exportStar(require("./setUsername"), exports); | ||
__exportStar(require("./sharePhoneNumber"), exports); | ||
__exportStar(require("./stopPoll"), exports); | ||
__exportStar(require("./synchronizeLanguagePack"), exports); | ||
__exportStar(require("./terminateAllOtherSessions"), exports); | ||
__exportStar(require("./terminateSession"), exports); | ||
__exportStar(require("./testCallBytes"), exports); | ||
__exportStar(require("./testCallEmpty"), exports); | ||
__exportStar(require("./testCallString"), exports); | ||
__exportStar(require("./testCallVectorInt"), exports); | ||
__exportStar(require("./testCallVectorIntObject"), exports); | ||
__exportStar(require("./testCallVectorString"), exports); | ||
__exportStar(require("./testCallVectorStringObject"), exports); | ||
__exportStar(require("./testGetDifference"), exports); | ||
__exportStar(require("./testNetwork"), exports); | ||
__exportStar(require("./testProxy"), exports); | ||
__exportStar(require("./testReturnError"), exports); | ||
__exportStar(require("./testSquareInt"), exports); | ||
__exportStar(require("./testUseUpdate"), exports); | ||
__exportStar(require("./toggleChatDefaultDisableNotification"), exports); | ||
__exportStar(require("./toggleChatIsMarkedAsUnread"), exports); | ||
__exportStar(require("./toggleChatIsPinned"), exports); | ||
__exportStar(require("./toggleSupergroupIsAllHistoryAvailable"), exports); | ||
__exportStar(require("./toggleSupergroupSignMessages"), exports); | ||
__exportStar(require("./transferChatOwnership"), exports); | ||
__exportStar(require("./unblockUser"), exports); | ||
__exportStar(require("./unpinChatMessage"), exports); | ||
__exportStar(require("./upgradeBasicGroupChatToSupergroupChat"), exports); | ||
__exportStar(require("./uploadFile"), exports); | ||
__exportStar(require("./uploadStickerFile"), exports); | ||
__exportStar(require("./validateOrderInfo"), exports); | ||
__exportStar(require("./viewMessages"), exports); | ||
__exportStar(require("./viewTrendingStickerSets"), exports); | ||
__exportStar(require("./writeGeneratedFilePart"), exports); |
@@ -12,2 +12,3 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
excludeChatIds?: number[]; | ||
returnDeletedFileStatistics?: boolean; | ||
chatLimit?: number; | ||
@@ -38,2 +39,5 @@ } | ||
* any chat (e.g., profile photos) | ||
* @param {boolean} [params.returnDeletedFileStatistics] - Pass true if deleted file | ||
* statistics needs to be returned instead of the whole storage usage statistics. Affects | ||
* only returned statistics | ||
* @param {number} [params.chatLimit] - Same as in getStorageStatistics. Affects | ||
@@ -40,0 +44,0 @@ * only returned statistics |
@@ -13,3 +13,3 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
* @param {Object} params | ||
* @param {string} [params.text] - The text which should be parsed | ||
* @param {string} [params.text] - The text to parse | ||
* @param {TextParseModeInputUnion} [params.parseMode] - Text parse mode | ||
@@ -16,0 +16,0 @@ * @param {ApiRequestOptions} options |
@@ -10,5 +10,6 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
/** | ||
* Reports a chat to the Telegram moderators. Supported only for supergroups, channels, | ||
* or private chats with bots, since other chats can't be checked by moderators, or | ||
* when the report is done from the chat action bar | ||
* Reports a chat to the Telegram moderators. A chat can be reported only from the chat | ||
* action bar, or if this is a private chats with a bot, a private chat with a user | ||
* sharing their location, a supergroup, or a channel, since other chats can't be checked | ||
* by moderators | ||
* @param {Object} params | ||
@@ -15,0 +16,0 @@ * @param {number} [params.chatId] - Chat identifier |
@@ -8,3 +8,5 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
* Requests QR code authentication by scanning a QR code on another logged in device. | ||
* Works only when the current authorization state is authorizationStateWaitPhoneNumber | ||
* Works only when the current authorization state is authorizationStateWaitPhoneNumber, | ||
* or if there is no pending authentication query and the current authorization state | ||
* is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword | ||
* @param {Object} params | ||
@@ -11,0 +13,0 @@ * @param {number[]} [params.otherUserIds] - List of user identifiers of other users |
@@ -9,3 +9,3 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
* Searches for the specified query in the title and username of already known chats, | ||
* this is an offline request. Returns chats in the order seen in the chat list | ||
* this is an offline request. Returns chats in the order seen in the main chat list | ||
* @param {Object} params | ||
@@ -12,0 +12,0 @@ * @param {string} [params.query] - Query to search for. If the query is empty, returns |
@@ -9,3 +9,3 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
* Searches for the specified query in the title and username of already known chats | ||
* via request to the server. Returns chats in the order seen in the chat list | ||
* via request to the server. Returns chats in the order seen in the main chat list | ||
* @param {Object} params | ||
@@ -12,0 +12,0 @@ * @param {string} [params.query] - Query to search for |
@@ -6,3 +6,3 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
exactMatch?: boolean; | ||
inputLanguageCode?: string; | ||
inputLanguageCodes?: string[]; | ||
} | ||
@@ -15,4 +15,4 @@ /** | ||
* text needs to be returned | ||
* @param {string} [params.inputLanguageCode] - IETF language tag of the user's input | ||
* language; may be empty if unknown | ||
* @param {string[]} [params.inputLanguageCodes] - List of possible IETF language | ||
* tags of the user's input language; may be empty if unknown | ||
* @param {ApiRequestOptions} options | ||
@@ -19,0 +19,0 @@ * @returns {Promise<ApiResponse<SearchEmojisParams, EmojisUnion>>} |
import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
import { ChatListInputUnion } from '../inputs'; | ||
import { OkUnion } from '../outputs'; | ||
export interface ToggleChatIsPinnedParams { | ||
chatList?: ChatListInputUnion; | ||
chatId?: number; | ||
@@ -9,6 +11,8 @@ isPinned?: boolean; | ||
* Changes the pinned state of a chat. You can pin up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") | ||
* non-secret chats and the same number of secret chats in the main/archive chat list | ||
* non-secret chats and the same number of secret chats in the main/arhive chat list | ||
* @param {Object} params | ||
* @param {ChatListInputUnion} [params.chatList] - Chat list in which to change the | ||
* pinned state of the chat | ||
* @param {number} [params.chatId] - Chat identifier | ||
* @param {boolean} [params.isPinned] - New value of is_pinned | ||
* @param {boolean} [params.isPinned] - True, if the chat is pinned | ||
* @param {ApiRequestOptions} options | ||
@@ -15,0 +19,0 @@ * @returns {Promise<ApiResponse<ToggleChatIsPinnedParams, OkUnion>>} |
@@ -13,3 +13,3 @@ import { ApiRequestOptions, ApiResponse } from '../airgram'; | ||
* @param {InputFileInputUnion} [params.pngSticker] - PNG image with the sticker; | ||
* must be up to 512 kB in size and fit in 512x512 square | ||
* must be up to 512 KB in size and fit in 512x512 square | ||
* @param {ApiRequestOptions} options | ||
@@ -16,0 +16,0 @@ * @returns {Promise<ApiResponse<UploadStickerFileParams, FileUnion>>} |
@@ -1,2 +0,2 @@ | ||
import { File, Minithumbnail, PhotoSize } from './index'; | ||
import { File, Minithumbnail, Thumbnail } from './index'; | ||
export declare type AnimationUnion = Animation; | ||
@@ -16,8 +16,13 @@ /** Describes an animation file. The animation must be encoded in GIF or MPEG4 format */ | ||
mimeType: string; | ||
/** | ||
* True, if stickers were added to the animation. The list of corresponding sticker | ||
* set can be received using getAttachedStickerSets | ||
*/ | ||
hasStickers: boolean; | ||
/** Animation minithumbnail; may be null */ | ||
minithumbnail?: Minithumbnail; | ||
/** Animation thumbnail; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Animation thumbnail in JPEG or MPEG4 format; may be null */ | ||
thumbnail?: Thumbnail; | ||
/** File containing the animation */ | ||
animation: File; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { File, Minithumbnail, PhotoSize } from './index'; | ||
import { File, Minithumbnail, Thumbnail } from './index'; | ||
export declare type AudioUnion = Audio; | ||
@@ -19,8 +19,8 @@ /** Describes an audio file. Audio is usually in MP3 or M4A format */ | ||
/** | ||
* The thumbnail of the album cover; as defined by the sender. The full size thumbnail | ||
* should be extracted from the downloaded file; may be null | ||
* The thumbnail of the album cover in JPEG format; as defined by the sender. The full | ||
* size thumbnail should be extracted from the downloaded file; may be null | ||
*/ | ||
albumCoverThumbnail?: PhotoSize; | ||
albumCoverThumbnail?: Thumbnail; | ||
/** File containing the audio */ | ||
audio: File; | ||
} |
export declare type BotCommandUnion = BotCommand; | ||
/** Represents commands supported by a bot */ | ||
/** Represents a command supported by a bot */ | ||
export interface BotCommand { | ||
@@ -4,0 +4,0 @@ _: 'botCommand'; |
@@ -13,2 +13,4 @@ export declare type CallProtocolUnion = CallProtocol; | ||
maxLayer: number; | ||
/** List of supported libtgvoip versions */ | ||
libraryVersions: string[]; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ChatActionBarUnion, ChatListUnion, ChatNotificationSettings, ChatPermissions, ChatPhoto, ChatTypeUnion, DraftMessage, Message } from './index'; | ||
import { ChatActionBarUnion, ChatNotificationSettings, ChatPermissions, ChatPhoto, ChatPosition, ChatTypeUnion, DraftMessage, Message } from './index'; | ||
export declare type ChatUnion = Chat; | ||
@@ -10,4 +10,2 @@ /** A chat. (Can be a private chat, basic group, supergroup, or secret chat) */ | ||
type: ChatTypeUnion; | ||
/** A chat list to which the chat belongs; may be null */ | ||
chatList?: ChatListUnion; | ||
/** Chat title */ | ||
@@ -21,14 +19,6 @@ title: string; | ||
lastMessage?: Message; | ||
/** | ||
* Descending parameter by which chats are sorted in the main chat list. If the order | ||
* number of two chats is the same, they must be sorted in descending order by ID. If | ||
* 0, the position of the chat in the list is undetermined | ||
*/ | ||
order: string; | ||
/** True, if the chat is pinned */ | ||
isPinned: boolean; | ||
/** Positions of the chat in chat lists */ | ||
positions: ChatPosition[]; | ||
/** True, if the chat is marked as unread */ | ||
isMarkedAsUnread: boolean; | ||
/** True, if the chat is sponsored by the user's MTProxy server */ | ||
isSponsored: boolean; | ||
/** True, if the chat has scheduled messages */ | ||
@@ -75,7 +65,7 @@ hasScheduledMessages: boolean; | ||
/** | ||
* Contains client-specific data associated with the chat. (For example, the chat position | ||
* or local chat notification settings can be stored here.) Persistent if the message | ||
* database is used | ||
* Contains client-specific data associated with the chat. (For example, the chat scroll | ||
* position or local chat notification settings can be stored here.) Persistent if the | ||
* message database is used | ||
*/ | ||
clientData: string; | ||
} |
@@ -14,3 +14,3 @@ import { ChatPhoto, ChatTypeUnion } from './index'; | ||
photo?: ChatPhoto; | ||
/** Number of members */ | ||
/** Number of members in the chat */ | ||
memberCount: number; | ||
@@ -17,0 +17,0 @@ /** User identifiers of some chat members that may be known to the current user */ |
/** Describes a list of chats */ | ||
export declare type ChatListUnion = ChatListMain | ChatListArchive; | ||
export declare type ChatListUnion = ChatListMain | ChatListArchive | ChatListFilter; | ||
/** A main list of chats */ | ||
@@ -14,1 +14,7 @@ export interface ChatListMain { | ||
} | ||
/** A list of chats belonging to a chat filter */ | ||
export interface ChatListFilter { | ||
_: 'chatListFilter'; | ||
/** Chat filter identifier */ | ||
chatFilterId: number; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { File, Minithumbnail, PhotoSize } from './index'; | ||
import { File, Minithumbnail, Thumbnail } from './index'; | ||
export declare type DocumentUnion = Document; | ||
@@ -16,5 +16,5 @@ /** Describes a document of any type */ | ||
*/ | ||
thumbnail?: PhotoSize; | ||
thumbnail?: Thumbnail; | ||
/** File containing the document */ | ||
document: File; | ||
} |
@@ -8,4 +8,6 @@ import { InputMessageContentUnion } from './index'; | ||
replyToMessageId: number; | ||
/** Point in time (Unix timestamp) when the draft was created */ | ||
date: number; | ||
/** Content of the message draft; this should always be of type inputMessageText */ | ||
inputMessageText: InputMessageContentUnion; | ||
} |
@@ -11,2 +11,3 @@ export * from './AccountTtl'; | ||
export * from './Backgrounds'; | ||
export * from './BankCardInfo'; | ||
export * from './BasicGroup'; | ||
@@ -26,8 +27,13 @@ export * from './BasicGroupFullInfo'; | ||
export * from './ChatEvents'; | ||
export * from './ChatFilter'; | ||
export * from './ChatFilterInfo'; | ||
export * from './ChatInviteLink'; | ||
export * from './ChatInviteLinkInfo'; | ||
export * from './ChatList'; | ||
export * from './ChatLists'; | ||
export * from './ChatMember'; | ||
export * from './ChatMemberStatus'; | ||
export * from './ChatMembers'; | ||
export * from './ChatSource'; | ||
export * from './ChatStatistics'; | ||
export * from './ChatType'; | ||
@@ -105,2 +111,3 @@ export * from './Chats'; | ||
export * from './PushReceiverId'; | ||
export * from './RecommendedChatFilters'; | ||
export * from './RecoveryEmailAddress'; | ||
@@ -115,2 +122,3 @@ export * from './ReplyMarkup'; | ||
export * from './Sessions'; | ||
export * from './StatisticsGraph'; | ||
export * from './StickerSet'; | ||
@@ -136,2 +144,3 @@ export * from './StickerSets'; | ||
export * from './TextEntityType'; | ||
export * from './ThumbnailFormat'; | ||
export * from './Update'; | ||
@@ -155,2 +164,3 @@ export * from './Updates'; | ||
export * from './AutoDownloadSettings'; | ||
export * from './BankCardActionOpenUrl'; | ||
export * from './BotCommand'; | ||
@@ -168,5 +178,8 @@ export * from './BotInfo'; | ||
export * from './ChatPhoto'; | ||
export * from './ChatPosition'; | ||
export * from './ChatStatisticsMessageInteractionCounters'; | ||
export * from './ConnectedWebsite'; | ||
export * from './Contact'; | ||
export * from './Date'; | ||
export * from './DateRange'; | ||
export * from './DatedFile'; | ||
@@ -211,5 +224,7 @@ export * from './Document'; | ||
export * from './ProfilePhoto'; | ||
export * from './RecommendedChatFilter'; | ||
export * from './RemoteFile'; | ||
export * from './SavedCredentials'; | ||
export * from './ShippingOption'; | ||
export * from './StatisticsValue'; | ||
export * from './Sticker'; | ||
@@ -222,2 +237,3 @@ export * from './StickerSetInfo'; | ||
export * from './TextEntity'; | ||
export * from './Thumbnail'; | ||
export * from './UserProfilePhoto'; | ||
@@ -224,0 +240,0 @@ export * from './Venue'; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./AccountTtl"), exports); | ||
__exportStar(require("./Animations"), exports); | ||
__exportStar(require("./AuthenticationCodeInfo"), exports); | ||
__exportStar(require("./AuthenticationCodeType"), exports); | ||
__exportStar(require("./AuthorizationState"), exports); | ||
__exportStar(require("./AutoDownloadSettingsPresets"), exports); | ||
__exportStar(require("./Background"), exports); | ||
__exportStar(require("./BackgroundFill"), exports); | ||
__exportStar(require("./BackgroundType"), exports); | ||
__exportStar(require("./Backgrounds"), exports); | ||
__exportStar(require("./BankCardInfo"), exports); | ||
__exportStar(require("./BasicGroup"), exports); | ||
__exportStar(require("./BasicGroupFullInfo"), exports); | ||
__exportStar(require("./CallDiscardReason"), exports); | ||
__exportStar(require("./CallId"), exports); | ||
__exportStar(require("./CallState"), exports); | ||
__exportStar(require("./CallbackQueryAnswer"), exports); | ||
__exportStar(require("./CallbackQueryPayload"), exports); | ||
__exportStar(require("./CanTransferOwnershipResult"), exports); | ||
__exportStar(require("./Chat"), exports); | ||
__exportStar(require("./ChatAction"), exports); | ||
__exportStar(require("./ChatActionBar"), exports); | ||
__exportStar(require("./ChatAdministrators"), exports); | ||
__exportStar(require("./ChatEventAction"), exports); | ||
__exportStar(require("./ChatEvents"), exports); | ||
__exportStar(require("./ChatFilter"), exports); | ||
__exportStar(require("./ChatFilterInfo"), exports); | ||
__exportStar(require("./ChatInviteLink"), exports); | ||
__exportStar(require("./ChatInviteLinkInfo"), exports); | ||
__exportStar(require("./ChatList"), exports); | ||
__exportStar(require("./ChatLists"), exports); | ||
__exportStar(require("./ChatMember"), exports); | ||
__exportStar(require("./ChatMemberStatus"), exports); | ||
__exportStar(require("./ChatMembers"), exports); | ||
__exportStar(require("./ChatSource"), exports); | ||
__exportStar(require("./ChatStatistics"), exports); | ||
__exportStar(require("./ChatType"), exports); | ||
__exportStar(require("./Chats"), exports); | ||
__exportStar(require("./ChatsNearby"), exports); | ||
__exportStar(require("./CheckChatUsernameResult"), exports); | ||
__exportStar(require("./ConnectedWebsites"), exports); | ||
__exportStar(require("./ConnectionState"), exports); | ||
__exportStar(require("./Count"), exports); | ||
__exportStar(require("./CustomRequestResult"), exports); | ||
__exportStar(require("./DatabaseStatistics"), exports); | ||
__exportStar(require("./DeepLinkInfo"), exports); | ||
__exportStar(require("./EmailAddressAuthenticationCodeInfo"), exports); | ||
__exportStar(require("./Emojis"), exports); | ||
__exportStar(require("./Error"), exports); | ||
__exportStar(require("./File"), exports); | ||
__exportStar(require("./FilePart"), exports); | ||
__exportStar(require("./FileType"), exports); | ||
__exportStar(require("./FormattedText"), exports); | ||
__exportStar(require("./FoundMessages"), exports); | ||
__exportStar(require("./GameHighScores"), exports); | ||
__exportStar(require("./Hashtags"), exports); | ||
__exportStar(require("./HttpUrl"), exports); | ||
__exportStar(require("./ImportedContacts"), exports); | ||
__exportStar(require("./InlineKeyboardButtonType"), exports); | ||
__exportStar(require("./InlineQueryResult"), exports); | ||
__exportStar(require("./InlineQueryResults"), exports); | ||
__exportStar(require("./JsonValue"), exports); | ||
__exportStar(require("./KeyboardButtonType"), exports); | ||
__exportStar(require("./LanguagePackInfo"), exports); | ||
__exportStar(require("./LanguagePackStringValue"), exports); | ||
__exportStar(require("./LanguagePackStrings"), exports); | ||
__exportStar(require("./LocalizationTargetInfo"), exports); | ||
__exportStar(require("./LogStream"), exports); | ||
__exportStar(require("./LogTags"), exports); | ||
__exportStar(require("./LogVerbosityLevel"), exports); | ||
__exportStar(require("./LoginUrlInfo"), exports); | ||
__exportStar(require("./MaskPoint"), exports); | ||
__exportStar(require("./Message"), exports); | ||
__exportStar(require("./MessageContent"), exports); | ||
__exportStar(require("./MessageForwardOrigin"), exports); | ||
__exportStar(require("./MessageLinkInfo"), exports); | ||
__exportStar(require("./MessageSchedulingState"), exports); | ||
__exportStar(require("./MessageSendingState"), exports); | ||
__exportStar(require("./Messages"), exports); | ||
__exportStar(require("./NetworkStatistics"), exports); | ||
__exportStar(require("./NetworkStatisticsEntry"), exports); | ||
__exportStar(require("./NetworkType"), exports); | ||
__exportStar(require("./NotificationGroupType"), exports); | ||
__exportStar(require("./NotificationSettingsScope"), exports); | ||
__exportStar(require("./NotificationType"), exports); | ||
__exportStar(require("./Ok"), exports); | ||
__exportStar(require("./OptionValue"), exports); | ||
__exportStar(require("./OrderInfo"), exports); | ||
__exportStar(require("./PageBlock"), exports); | ||
__exportStar(require("./PageBlockHorizontalAlignment"), exports); | ||
__exportStar(require("./PageBlockVerticalAlignment"), exports); | ||
__exportStar(require("./PassportAuthorizationForm"), exports); | ||
__exportStar(require("./PassportElement"), exports); | ||
__exportStar(require("./PassportElementErrorSource"), exports); | ||
__exportStar(require("./PassportElementType"), exports); | ||
__exportStar(require("./PassportElements"), exports); | ||
__exportStar(require("./PassportElementsWithErrors"), exports); | ||
__exportStar(require("./PasswordState"), exports); | ||
__exportStar(require("./PaymentForm"), exports); | ||
__exportStar(require("./PaymentReceipt"), exports); | ||
__exportStar(require("./PaymentResult"), exports); | ||
__exportStar(require("./PollType"), exports); | ||
__exportStar(require("./Proxies"), exports); | ||
__exportStar(require("./Proxy"), exports); | ||
__exportStar(require("./ProxyType"), exports); | ||
__exportStar(require("./PublicMessageLink"), exports); | ||
__exportStar(require("./PushMessageContent"), exports); | ||
__exportStar(require("./PushReceiverId"), exports); | ||
__exportStar(require("./RecommendedChatFilters"), exports); | ||
__exportStar(require("./RecoveryEmailAddress"), exports); | ||
__exportStar(require("./ReplyMarkup"), exports); | ||
__exportStar(require("./RichText"), exports); | ||
__exportStar(require("./ScopeNotificationSettings"), exports); | ||
__exportStar(require("./Seconds"), exports); | ||
__exportStar(require("./SecretChat"), exports); | ||
__exportStar(require("./SecretChatState"), exports); | ||
__exportStar(require("./Session"), exports); | ||
__exportStar(require("./Sessions"), exports); | ||
__exportStar(require("./StatisticsGraph"), exports); | ||
__exportStar(require("./StickerSet"), exports); | ||
__exportStar(require("./StickerSets"), exports); | ||
__exportStar(require("./Stickers"), exports); | ||
__exportStar(require("./StorageStatistics"), exports); | ||
__exportStar(require("./StorageStatisticsFast"), exports); | ||
__exportStar(require("./Supergroup"), exports); | ||
__exportStar(require("./SupergroupFullInfo"), exports); | ||
__exportStar(require("./TMeUrlType"), exports); | ||
__exportStar(require("./TMeUrls"), exports); | ||
__exportStar(require("./TemporaryPasswordState"), exports); | ||
__exportStar(require("./TestBytes"), exports); | ||
__exportStar(require("./TestInt"), exports); | ||
__exportStar(require("./TestString"), exports); | ||
__exportStar(require("./TestVectorInt"), exports); | ||
__exportStar(require("./TestVectorIntObject"), exports); | ||
__exportStar(require("./TestVectorString"), exports); | ||
__exportStar(require("./TestVectorStringObject"), exports); | ||
__exportStar(require("./Text"), exports); | ||
__exportStar(require("./TextEntities"), exports); | ||
__exportStar(require("./TextEntityType"), exports); | ||
__exportStar(require("./ThumbnailFormat"), exports); | ||
__exportStar(require("./Update"), exports); | ||
__exportStar(require("./Updates"), exports); | ||
__exportStar(require("./User"), exports); | ||
__exportStar(require("./UserFullInfo"), exports); | ||
__exportStar(require("./UserPrivacySetting"), exports); | ||
__exportStar(require("./UserPrivacySettingRule"), exports); | ||
__exportStar(require("./UserPrivacySettingRules"), exports); | ||
__exportStar(require("./UserProfilePhotos"), exports); | ||
__exportStar(require("./UserStatus"), exports); | ||
__exportStar(require("./UserType"), exports); | ||
__exportStar(require("./Users"), exports); | ||
__exportStar(require("./ValidatedOrderInfo"), exports); | ||
__exportStar(require("./WebPage"), exports); | ||
__exportStar(require("./WebPageInstantView"), exports); | ||
__exportStar(require("./Address"), exports); | ||
__exportStar(require("./Animation"), exports); | ||
__exportStar(require("./Audio"), exports); | ||
__exportStar(require("./AutoDownloadSettings"), exports); | ||
__exportStar(require("./BankCardActionOpenUrl"), exports); | ||
__exportStar(require("./BotCommand"), exports); | ||
__exportStar(require("./BotInfo"), exports); | ||
__exportStar(require("./Call"), exports); | ||
__exportStar(require("./CallConnection"), exports); | ||
__exportStar(require("./CallProtocol"), exports); | ||
__exportStar(require("./ChatAdministrator"), exports); | ||
__exportStar(require("./ChatEvent"), exports); | ||
__exportStar(require("./ChatLocation"), exports); | ||
__exportStar(require("./ChatNearby"), exports); | ||
__exportStar(require("./ChatNotificationSettings"), exports); | ||
__exportStar(require("./ChatPermissions"), exports); | ||
__exportStar(require("./ChatPhoto"), exports); | ||
__exportStar(require("./ChatPosition"), exports); | ||
__exportStar(require("./ChatStatisticsMessageInteractionCounters"), exports); | ||
__exportStar(require("./ConnectedWebsite"), exports); | ||
__exportStar(require("./Contact"), exports); | ||
__exportStar(require("./Date"), exports); | ||
__exportStar(require("./DateRange"), exports); | ||
__exportStar(require("./DatedFile"), exports); | ||
__exportStar(require("./Document"), exports); | ||
__exportStar(require("./DraftMessage"), exports); | ||
__exportStar(require("./EncryptedCredentials"), exports); | ||
__exportStar(require("./EncryptedPassportElement"), exports); | ||
__exportStar(require("./Game"), exports); | ||
__exportStar(require("./GameHighScore"), exports); | ||
__exportStar(require("./IdentityDocument"), exports); | ||
__exportStar(require("./InlineKeyboardButton"), exports); | ||
__exportStar(require("./InputFile"), exports); | ||
__exportStar(require("./InputMessageContent"), exports); | ||
__exportStar(require("./InputThumbnail"), exports); | ||
__exportStar(require("./Invoice"), exports); | ||
__exportStar(require("./JsonObjectMember"), exports); | ||
__exportStar(require("./KeyboardButton"), exports); | ||
__exportStar(require("./LabeledPricePart"), exports); | ||
__exportStar(require("./LanguagePackString"), exports); | ||
__exportStar(require("./LocalFile"), exports); | ||
__exportStar(require("./Location"), exports); | ||
__exportStar(require("./MaskPosition"), exports); | ||
__exportStar(require("./MessageForwardInfo"), exports); | ||
__exportStar(require("./Minithumbnail"), exports); | ||
__exportStar(require("./Notification"), exports); | ||
__exportStar(require("./NotificationGroup"), exports); | ||
__exportStar(require("./PageBlockCaption"), exports); | ||
__exportStar(require("./PageBlockListItem"), exports); | ||
__exportStar(require("./PageBlockRelatedArticle"), exports); | ||
__exportStar(require("./PageBlockTableCell"), exports); | ||
__exportStar(require("./PassportElementError"), exports); | ||
__exportStar(require("./PassportRequiredElement"), exports); | ||
__exportStar(require("./PassportSuitableElement"), exports); | ||
__exportStar(require("./PaymentsProviderStripe"), exports); | ||
__exportStar(require("./PersonalDetails"), exports); | ||
__exportStar(require("./PersonalDocument"), exports); | ||
__exportStar(require("./Photo"), exports); | ||
__exportStar(require("./PhotoSize"), exports); | ||
__exportStar(require("./Poll"), exports); | ||
__exportStar(require("./PollOption"), exports); | ||
__exportStar(require("./ProfilePhoto"), exports); | ||
__exportStar(require("./RecommendedChatFilter"), exports); | ||
__exportStar(require("./RemoteFile"), exports); | ||
__exportStar(require("./SavedCredentials"), exports); | ||
__exportStar(require("./ShippingOption"), exports); | ||
__exportStar(require("./StatisticsValue"), exports); | ||
__exportStar(require("./Sticker"), exports); | ||
__exportStar(require("./StickerSetInfo"), exports); | ||
__exportStar(require("./StorageStatisticsByChat"), exports); | ||
__exportStar(require("./StorageStatisticsByFileType"), exports); | ||
__exportStar(require("./TMeUrl"), exports); | ||
__exportStar(require("./TermsOfService"), exports); | ||
__exportStar(require("./TextEntity"), exports); | ||
__exportStar(require("./Thumbnail"), exports); | ||
__exportStar(require("./UserProfilePhoto"), exports); | ||
__exportStar(require("./Venue"), exports); | ||
__exportStar(require("./Video"), exports); | ||
__exportStar(require("./VideoNote"), exports); | ||
__exportStar(require("./VoiceNote"), exports); |
@@ -1,2 +0,2 @@ | ||
import { Animation, Audio, Contact, Document, Game, Location, Photo, PhotoSize, Sticker, Venue, Video, VoiceNote } from './index'; | ||
import { Animation, Audio, Contact, Document, Game, Location, Photo, Sticker, Thumbnail, Venue, Video, VoiceNote } from './index'; | ||
/** Represents a single result of an inline query */ | ||
@@ -17,4 +17,4 @@ export declare type InlineQueryResultUnion = InlineQueryResultArticle | InlineQueryResultContact | InlineQueryResultLocation | InlineQueryResultVenue | InlineQueryResultGame | InlineQueryResultAnimation | InlineQueryResultAudio | InlineQueryResultDocument | InlineQueryResultPhoto | InlineQueryResultSticker | InlineQueryResultVideo | InlineQueryResultVoiceNote; | ||
description: string; | ||
/** Result thumbnail; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Result thumbnail in JPEG format; may be null */ | ||
thumbnail?: Thumbnail; | ||
} | ||
@@ -28,4 +28,4 @@ /** Represents a user contact */ | ||
contact: Contact; | ||
/** Result thumbnail; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Result thumbnail in JPEG format; may be null */ | ||
thumbnail?: Thumbnail; | ||
} | ||
@@ -41,4 +41,4 @@ /** Represents a point on the map */ | ||
title: string; | ||
/** Result thumbnail; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Result thumbnail in JPEG format; may be null */ | ||
thumbnail?: Thumbnail; | ||
} | ||
@@ -52,4 +52,4 @@ /** Represents information about a venue */ | ||
venue: Venue; | ||
/** Result thumbnail; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Result thumbnail in JPEG format; may be null */ | ||
thumbnail?: Thumbnail; | ||
} | ||
@@ -56,0 +56,0 @@ /** Represents information about a game */ |
import { Contact, FormattedText, InputFileUnion, InputThumbnail, Invoice, Location, PollTypeUnion, Venue } from './index'; | ||
/** The content of a message to send */ | ||
export declare type InputMessageContentUnion = InputMessageText | InputMessageAnimation | InputMessageAudio | InputMessageDocument | InputMessagePhoto | InputMessageSticker | InputMessageVideo | InputMessageVideoNote | InputMessageVoiceNote | InputMessageLocation | InputMessageVenue | InputMessageContact | InputMessageGame | InputMessageInvoice | InputMessagePoll | InputMessageForwarded; | ||
export declare type InputMessageContentUnion = InputMessageText | InputMessageAnimation | InputMessageAudio | InputMessageDocument | InputMessagePhoto | InputMessageSticker | InputMessageVideo | InputMessageVideoNote | InputMessageVoiceNote | InputMessageLocation | InputMessageVenue | InputMessageContact | InputMessageDice | InputMessageGame | InputMessageInvoice | InputMessagePoll | InputMessageForwarded; | ||
/** A text message */ | ||
@@ -25,2 +25,4 @@ export interface InputMessageText { | ||
thumbnail: InputThumbnail; | ||
/** File identifiers of the stickers added to the animation, if applicable */ | ||
addedStickerFileIds: number[]; | ||
/** Duration of the animation, in seconds */ | ||
@@ -166,2 +168,10 @@ duration: number; | ||
} | ||
/** A dice message */ | ||
export interface InputMessageDice { | ||
_: 'inputMessageDice'; | ||
/** Emoji on which the dice throw animation is based */ | ||
emoji: string; | ||
/** True, if a chat message draft should be deleted */ | ||
clearDraft: boolean; | ||
} | ||
/** A message with a game; not supported for channels or secret chats */ | ||
@@ -218,2 +228,9 @@ export interface InputMessageGame { | ||
type: PollTypeUnion; | ||
/** Amount of time the poll will be active after creation, in seconds; for bots only */ | ||
openPeriod: number; | ||
/** | ||
* Point in time (Unix timestamp) when the poll will be automatically closed; for bots | ||
* only | ||
*/ | ||
closeDate: number; | ||
/** True, if the poll needs to be sent already closed; for bots only */ | ||
@@ -220,0 +237,0 @@ isClosed: boolean; |
@@ -5,3 +5,3 @@ import { InputFileUnion } from './index'; | ||
* A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, | ||
* and less than 200 kB in size | ||
* and less than 200 KB in size | ||
*/ | ||
@@ -8,0 +8,0 @@ export interface InputThumbnail { |
import { Animation, Audio, CallDiscardReasonUnion, Contact, Document, EncryptedCredentials, EncryptedPassportElement, FormattedText, Game, Location, OrderInfo, PassportElementTypeUnion, Photo, Poll, Sticker, Venue, Video, VideoNote, VoiceNote, WebPage } from './index'; | ||
/** Contains the content of a message */ | ||
export declare type MessageContentUnion = MessageText | MessageAnimation | MessageAudio | MessageDocument | MessagePhoto | MessageExpiredPhoto | MessageSticker | MessageVideo | MessageExpiredVideo | MessageVideoNote | MessageVoiceNote | MessageLocation | MessageVenue | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageCall | MessageBasicGroupChatCreate | MessageSupergroupChatCreate | MessageChatChangeTitle | MessageChatChangePhoto | MessageChatDeletePhoto | MessageChatAddMembers | MessageChatJoinByLink | MessageChatDeleteMember | MessageChatUpgradeTo | MessageChatUpgradeFrom | MessagePinMessage | MessageScreenshotTaken | MessageChatSetTtl | MessageCustomServiceAction | MessageGameScore | MessagePaymentSuccessful | MessagePaymentSuccessfulBot | MessageContactRegistered | MessageWebsiteConnected | MessagePassportDataSent | MessagePassportDataReceived | MessageUnsupported; | ||
export declare type MessageContentUnion = MessageText | MessageAnimation | MessageAudio | MessageDocument | MessagePhoto | MessageExpiredPhoto | MessageSticker | MessageVideo | MessageExpiredVideo | MessageVideoNote | MessageVoiceNote | MessageLocation | MessageVenue | MessageContact | MessageDice | MessageGame | MessagePoll | MessageInvoice | MessageCall | MessageBasicGroupChatCreate | MessageSupergroupChatCreate | MessageChatChangeTitle | MessageChatChangePhoto | MessageChatDeletePhoto | MessageChatAddMembers | MessageChatJoinByLink | MessageChatDeleteMember | MessageChatUpgradeTo | MessageChatUpgradeFrom | MessagePinMessage | MessageScreenshotTaken | MessageChatSetTtl | MessageCustomServiceAction | MessageGameScore | MessagePaymentSuccessful | MessagePaymentSuccessfulBot | MessageContactRegistered | MessageWebsiteConnected | MessagePassportDataSent | MessagePassportDataReceived | MessageUnsupported; | ||
/** A text message */ | ||
@@ -129,2 +129,25 @@ export interface MessageText { | ||
} | ||
/** A dice message. The dice value is randomly generated by the server */ | ||
export interface MessageDice { | ||
_: 'messageDice'; | ||
/** | ||
* The animated sticker with the initial dice animation; may be null if unknown. updateMessageContent | ||
* will be sent when the sticker became known | ||
*/ | ||
initialStateSticker?: Sticker; | ||
/** | ||
* The animated sticker with the final dice animation; may be null if unknown. updateMessageContent | ||
* will be sent when the sticker became known | ||
*/ | ||
finalStateSticker?: Sticker; | ||
/** Emoji on which the dice throw animation is based */ | ||
emoji: string; | ||
/** The dice value. If the value is 0, the dice don't have final state yet */ | ||
value: number; | ||
/** | ||
* Number of frame after which a success animation like a shower of confetti needs to | ||
* be shown on updateMessageSendSucceeded | ||
*/ | ||
successAnimationFrameNumber: number; | ||
} | ||
/** A message with a game */ | ||
@@ -131,0 +154,0 @@ export interface MessageGame { |
@@ -10,2 +10,4 @@ import { MessageForwardOriginUnion } from './index'; | ||
date: number; | ||
/** The type of a public service announcement for the forwarded message */ | ||
publicServiceAnnouncementType: string; | ||
/** | ||
@@ -12,0 +14,0 @@ * For messages forwarded to the chat with the current user (Saved Messages) or to the |
@@ -28,6 +28,10 @@ import { Message, PushMessageContentUnion } from './index'; | ||
messageId: number; | ||
/** Sender of the message. Corresponding user may be inaccessible */ | ||
/** Sender of the message; 0 if unknown. Corresponding user may be inaccessible */ | ||
senderUserId: number; | ||
/** Name of the sender; can be different from the name of the sender user */ | ||
senderName: string; | ||
/** True, if the message is outgoing */ | ||
isOutgoing: boolean; | ||
/** Push message content */ | ||
content: PushMessageContentUnion; | ||
} |
@@ -6,3 +6,6 @@ import { Minithumbnail, PhotoSize } from './index'; | ||
_: 'photo'; | ||
/** True, if stickers were added to the photo */ | ||
/** | ||
* True, if stickers were added to the photo. The list of corresponding sticker sets | ||
* can be received using getAttachedStickerSets | ||
*/ | ||
hasStickers: boolean; | ||
@@ -9,0 +12,0 @@ /** Photo minithumbnail; may be null */ |
@@ -20,4 +20,8 @@ import { PollOption, PollTypeUnion } from './index'; | ||
type: PollTypeUnion; | ||
/** Amount of time the poll will be active after creation, in seconds */ | ||
openPeriod: number; | ||
/** Point in time (Unix timestamp) when the poll will be automatically closed */ | ||
closeDate: number; | ||
/** True, if the poll is closed */ | ||
isClosed: boolean; | ||
} |
@@ -0,1 +1,2 @@ | ||
import { FormattedText } from './index'; | ||
/** Describes the type of a poll */ | ||
@@ -17,2 +18,7 @@ export declare type PollTypeUnion = PollTypeRegular | PollTypeQuiz; | ||
correctOptionId: number; | ||
/** | ||
* Text that is shown when the user chooses an incorrect answer or taps on the lamp | ||
* icon, 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll | ||
*/ | ||
explanation: FormattedText; | ||
} |
@@ -19,3 +19,3 @@ /** Describes the type of a proxy server */ | ||
/** | ||
* Pass true, if the proxy supports only HTTP requests and doesn't support transparent | ||
* Pass true if the proxy supports only HTTP requests and doesn't support transparent | ||
* TCP connections via HTTP CONNECT method | ||
@@ -22,0 +22,0 @@ */ |
@@ -6,11 +6,10 @@ export declare type RemoteFileUnion = RemoteFile; | ||
/** | ||
* Remote file identifier; may be empty. Can be used across application restarts or | ||
* even from other devices for the current user. Uniquely identifies a file, but a file | ||
* can have a lot of different valid identifiers. If the ID starts with "http://" or | ||
* "https://", it represents the HTTP URL of the file. TDLib is currently unable to | ||
* download files if only their URL is known. If downloadFile is called on such a file | ||
* or if it is sent to a secret chat, TDLib starts a file generation process by sending | ||
* updateFileGenerationStart to the client with the HTTP URL in the original_path and | ||
* "#url#" as the conversion string. Clients should generate the file by downloading | ||
* it to the specified location | ||
* Remote file identifier; may be empty. Can be used by the current user across application | ||
* restarts or even from other devices. Uniquely identifies a file, but a file can have | ||
* a lot of different valid identifiers. If the ID starts with "http://" or "https://", | ||
* it represents the HTTP URL of the file. TDLib is currently unable to download files | ||
* if only their URL is known. If downloadFile is called on such a file or if it is | ||
* sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart | ||
* to the client with the HTTP URL in the original_path and "#url#" as the conversion | ||
* string. Clients should generate the file by downloading it to the specified location | ||
*/ | ||
@@ -17,0 +16,0 @@ id: string; |
import { Document } from './index'; | ||
/** Describes a text object inside an instant-view web page */ | ||
export declare type RichTextUnion = RichTextPlain | RichTextBold | RichTextItalic | RichTextUnderline | RichTextStrikethrough | RichTextFixed | RichTextUrl | RichTextEmailAddress | RichTextSubscript | RichTextSuperscript | RichTextMarked | RichTextPhoneNumber | RichTextIcon | RichTextAnchor | RichTexts; | ||
export declare type RichTextUnion = RichTextPlain | RichTextBold | RichTextItalic | RichTextUnderline | RichTextStrikethrough | RichTextFixed | RichTextUrl | RichTextEmailAddress | RichTextSubscript | RichTextSuperscript | RichTextMarked | RichTextPhoneNumber | RichTextIcon | RichTextReference | RichTextAnchor | RichTextAnchorLink | RichTexts; | ||
/** A plain text */ | ||
@@ -94,10 +94,28 @@ export interface RichTextPlain { | ||
} | ||
/** A rich text anchor */ | ||
/** A rich text reference of a text on the same web page */ | ||
export interface RichTextReference { | ||
_: 'richTextReference'; | ||
/** The text */ | ||
text: RichTextUnion; | ||
/** The text to show on click */ | ||
referenceText: RichTextUnion; | ||
/** An HTTP URL, opening the reference */ | ||
url: string; | ||
} | ||
/** An anchor */ | ||
export interface RichTextAnchor { | ||
_: 'richTextAnchor'; | ||
/** Text */ | ||
text: RichTextUnion; | ||
/** Anchor name */ | ||
name: string; | ||
} | ||
/** A link to an anchor on the same web page */ | ||
export interface RichTextAnchorLink { | ||
_: 'richTextAnchorLink'; | ||
/** The link text */ | ||
text: RichTextUnion; | ||
/** The anchor name. If the name is empty, the link should bring back to top */ | ||
name: string; | ||
/** An HTTP URL, opening the anchor */ | ||
url: string; | ||
} | ||
/** A concatenation of rich texts */ | ||
@@ -104,0 +122,0 @@ export interface RichTexts { |
@@ -1,2 +0,2 @@ | ||
import { File, MaskPosition, PhotoSize } from './index'; | ||
import { File, MaskPosition, Thumbnail } from './index'; | ||
export declare type StickerUnion = Sticker; | ||
@@ -21,5 +21,5 @@ /** Describes a sticker */ | ||
/** Sticker thumbnail in WEBP or JPEG format; may be null */ | ||
thumbnail?: PhotoSize; | ||
thumbnail?: Thumbnail; | ||
/** File containing the sticker */ | ||
sticker: File; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Emojis, PhotoSize, Sticker } from './index'; | ||
import { Emojis, Sticker, Thumbnail } from './index'; | ||
export declare type StickerSetUnion = StickerSet; | ||
@@ -13,6 +13,6 @@ /** Represents a sticker set */ | ||
/** | ||
* Sticker set thumbnail in WEBP format with width and height 100; may be null. The | ||
* file can be downloaded only before the thumbnail is changed | ||
* Sticker set thumbnail in WEBP or TGS format with width and height 100; may be null. | ||
* The file can be downloaded only before the thumbnail is changed | ||
*/ | ||
thumbnail?: PhotoSize; | ||
thumbnail?: Thumbnail; | ||
/** True, if the sticker set has been installed by the current user */ | ||
@@ -19,0 +19,0 @@ isInstalled: boolean; |
@@ -1,2 +0,2 @@ | ||
import { PhotoSize, Sticker } from './index'; | ||
import { Sticker, Thumbnail } from './index'; | ||
export declare type StickerSetInfoUnion = StickerSetInfo; | ||
@@ -12,4 +12,4 @@ /** Represents short information about a sticker set */ | ||
name: string; | ||
/** Sticker set thumbnail in WEBP format with width and height 100; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Sticker set thumbnail in WEBP or TGS format with width and height 100; may be null */ | ||
thumbnail?: Thumbnail; | ||
/** True, if the sticker set has been installed by current user */ | ||
@@ -16,0 +16,0 @@ isInstalled: boolean; |
@@ -28,4 +28,6 @@ import { ChatMemberStatusUnion } from './index'; | ||
/** | ||
* Member count; 0 if unknown. Currently it is guaranteed to be known only if the supergroup | ||
* or channel was found through SearchPublicChats | ||
* Number of members in the supergroup or channel; 0 if unknown. Currently it is guaranteed | ||
* to be known only if the supergroup or channel was received through searchPublicChats, | ||
* searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, | ||
* or getUserPrivacySettingRules | ||
*/ | ||
@@ -32,0 +34,0 @@ memberCount: number; |
@@ -40,3 +40,3 @@ import { ChatLocation } from './index'; | ||
canSetLocation: boolean; | ||
/** True, if the channel statistics is available through getChatStatisticsUrl */ | ||
/** True, if the channel statistics is available */ | ||
canViewStatistics: boolean; | ||
@@ -43,0 +43,0 @@ /** |
/** Represents a part of the text which must be formatted differently */ | ||
export declare type TextEntityTypeUnion = TextEntityTypeMention | TextEntityTypeHashtag | TextEntityTypeCashtag | TextEntityTypeBotCommand | TextEntityTypeUrl | TextEntityTypeEmailAddress | TextEntityTypePhoneNumber | TextEntityTypeBold | TextEntityTypeItalic | TextEntityTypeUnderline | TextEntityTypeStrikethrough | TextEntityTypeCode | TextEntityTypePre | TextEntityTypePreCode | TextEntityTypeTextUrl | TextEntityTypeMentionName; | ||
export declare type TextEntityTypeUnion = TextEntityTypeMention | TextEntityTypeHashtag | TextEntityTypeCashtag | TextEntityTypeBotCommand | TextEntityTypeUrl | TextEntityTypeEmailAddress | TextEntityTypePhoneNumber | TextEntityTypeBankCardNumber | TextEntityTypeBold | TextEntityTypeItalic | TextEntityTypeUnderline | TextEntityTypeStrikethrough | TextEntityTypeCode | TextEntityTypePre | TextEntityTypePreCode | TextEntityTypeTextUrl | TextEntityTypeMentionName; | ||
/** A mention of a user by their username */ | ||
@@ -37,2 +37,9 @@ export interface TextEntityTypeMention { | ||
} | ||
/** | ||
* A bank card number. The getBankCardInfo method can be used to get information about | ||
* the bank card | ||
*/ | ||
export interface TextEntityTypeBankCardNumber { | ||
_: 'textEntityTypeBankCardNumber'; | ||
} | ||
/** A bold text */ | ||
@@ -39,0 +46,0 @@ export interface TextEntityTypeBold { |
@@ -1,4 +0,4 @@ | ||
import { Address, AuthorizationStateUnion, Background, BasicGroup, BasicGroupFullInfo, Call, CallbackQueryPayloadUnion, Chat, ChatActionBarUnion, ChatActionUnion, ChatListUnion, ChatNearby, ChatNotificationSettings, ChatPermissions, ChatPhoto, ConnectionStateUnion, DraftMessage, File, LanguagePackString, Location, Message, MessageContentUnion, Notification, NotificationGroup, NotificationGroupTypeUnion, NotificationSettingsScopeUnion, OptionValueUnion, OrderInfo, Poll, ReplyMarkupUnion, ScopeNotificationSettings, SecretChat, StickerSets, Supergroup, SupergroupFullInfo, TermsOfService, User, UserFullInfo, UserPrivacySettingRules, UserPrivacySettingUnion, UserStatusUnion } from './index'; | ||
import { Address, AuthorizationStateUnion, Background, BasicGroup, BasicGroupFullInfo, Call, CallbackQueryPayloadUnion, Chat, ChatActionBarUnion, ChatActionUnion, ChatFilterInfo, ChatListUnion, ChatNearby, ChatNotificationSettings, ChatPermissions, ChatPhoto, ChatPosition, ConnectionStateUnion, DraftMessage, File, LanguagePackString, Location, Message, MessageContentUnion, Notification, NotificationGroup, NotificationGroupTypeUnion, NotificationSettingsScopeUnion, OptionValueUnion, OrderInfo, Poll, ReplyMarkupUnion, ScopeNotificationSettings, SecretChat, StickerSet, StickerSets, Supergroup, SupergroupFullInfo, TermsOfService, User, UserFullInfo, UserPrivacySettingRules, UserPrivacySettingUnion, UserStatusUnion } from './index'; | ||
/** Contains notifications about data changes */ | ||
export declare type UpdateUnion = UpdateAuthorizationState | UpdateNewMessage | UpdateMessageSendAcknowledged | UpdateMessageSendSucceeded | UpdateMessageSendFailed | UpdateMessageContent | UpdateMessageEdited | UpdateMessageViews | UpdateMessageContentOpened | UpdateMessageMentionRead | UpdateMessageLiveLocationViewed | UpdateNewChat | UpdateChatChatList | UpdateChatTitle | UpdateChatPhoto | UpdateChatPermissions | UpdateChatLastMessage | UpdateChatOrder | UpdateChatIsPinned | UpdateChatIsMarkedAsUnread | UpdateChatIsSponsored | UpdateChatHasScheduledMessages | UpdateChatDefaultDisableNotification | UpdateChatReadInbox | UpdateChatReadOutbox | UpdateChatUnreadMentionCount | UpdateChatNotificationSettings | UpdateScopeNotificationSettings | UpdateChatActionBar | UpdateChatPinnedMessage | UpdateChatReplyMarkup | UpdateChatDraftMessage | UpdateChatOnlineMemberCount | UpdateNotification | UpdateNotificationGroup | UpdateActiveNotifications | UpdateHavePendingNotifications | UpdateDeleteMessages | UpdateUserChatAction | UpdateUserStatus | UpdateUser | UpdateBasicGroup | UpdateSupergroup | UpdateSecretChat | UpdateUserFullInfo | UpdateBasicGroupFullInfo | UpdateSupergroupFullInfo | UpdateServiceNotification | UpdateFile | UpdateFileGenerationStart | UpdateFileGenerationStop | UpdateCall | UpdateUserPrivacySettingRules | UpdateUnreadMessageCount | UpdateUnreadChatCount | UpdateOption | UpdateInstalledStickerSets | UpdateTrendingStickerSets | UpdateRecentStickers | UpdateFavoriteStickers | UpdateSavedAnimations | UpdateSelectedBackground | UpdateLanguagePackStrings | UpdateConnectionState | UpdateTermsOfService | UpdateUsersNearby | UpdateNewInlineQuery | UpdateNewChosenInlineResult | UpdateNewCallbackQuery | UpdateNewInlineCallbackQuery | UpdateNewShippingQuery | UpdateNewPreCheckoutQuery | UpdateNewCustomEvent | UpdateNewCustomQuery | UpdatePoll | UpdatePollAnswer; | ||
export declare type UpdateUnion = UpdateAuthorizationState | UpdateNewMessage | UpdateMessageSendAcknowledged | UpdateMessageSendSucceeded | UpdateMessageSendFailed | UpdateMessageContent | UpdateMessageEdited | UpdateMessageViews | UpdateMessageContentOpened | UpdateMessageMentionRead | UpdateMessageLiveLocationViewed | UpdateNewChat | UpdateChatTitle | UpdateChatPhoto | UpdateChatPermissions | UpdateChatLastMessage | UpdateChatPosition | UpdateChatIsMarkedAsUnread | UpdateChatHasScheduledMessages | UpdateChatDefaultDisableNotification | UpdateChatReadInbox | UpdateChatReadOutbox | UpdateChatUnreadMentionCount | UpdateChatNotificationSettings | UpdateScopeNotificationSettings | UpdateChatActionBar | UpdateChatPinnedMessage | UpdateChatReplyMarkup | UpdateChatDraftMessage | UpdateChatFilters | UpdateChatOnlineMemberCount | UpdateNotification | UpdateNotificationGroup | UpdateActiveNotifications | UpdateHavePendingNotifications | UpdateDeleteMessages | UpdateUserChatAction | UpdateUserStatus | UpdateUser | UpdateBasicGroup | UpdateSupergroup | UpdateSecretChat | UpdateUserFullInfo | UpdateBasicGroupFullInfo | UpdateSupergroupFullInfo | UpdateServiceNotification | UpdateFile | UpdateFileGenerationStart | UpdateFileGenerationStop | UpdateCall | UpdateUserPrivacySettingRules | UpdateUnreadMessageCount | UpdateUnreadChatCount | UpdateOption | UpdateStickerSet | UpdateInstalledStickerSets | UpdateTrendingStickerSets | UpdateRecentStickers | UpdateFavoriteStickers | UpdateSavedAnimations | UpdateSelectedBackground | UpdateLanguagePackStrings | UpdateConnectionState | UpdateTermsOfService | UpdateUsersNearby | UpdateDiceEmojis | UpdateAnimationSearchParameters | UpdateNewInlineQuery | UpdateNewChosenInlineResult | UpdateNewCallbackQuery | UpdateNewInlineCallbackQuery | UpdateNewShippingQuery | UpdateNewPreCheckoutQuery | UpdateNewCustomEvent | UpdateNewCustomQuery | UpdatePoll | UpdatePollAnswer; | ||
/** The user authorization state has changed */ | ||
@@ -129,13 +129,2 @@ export interface UpdateAuthorizationState { | ||
} | ||
/** | ||
* The list to which the chat belongs was changed. This update is guaranteed to be sent | ||
* only when chat.order == 0 and the current or the new chat list is null | ||
*/ | ||
export interface UpdateChatChatList { | ||
_: 'updateChatChatList'; | ||
/** Chat identifier */ | ||
chatId: number; | ||
/** The new chat's chat list; may be null */ | ||
chatList?: ChatListUnion; | ||
} | ||
/** The title of a chat was changed */ | ||
@@ -176,26 +165,19 @@ export interface UpdateChatTitle { | ||
lastMessage?: Message; | ||
/** New value of the chat order */ | ||
order: string; | ||
/** The new chat positions in the chat lists */ | ||
positions: ChatPosition[]; | ||
} | ||
/** | ||
* The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, | ||
* updateChatIsPinned, updateChatDraftMessage, or updateChatIsSponsored might be sent | ||
* The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage | ||
* or updateChatDraftMessage might be sent | ||
*/ | ||
export interface UpdateChatOrder { | ||
_: 'updateChatOrder'; | ||
export interface UpdateChatPosition { | ||
_: 'updateChatPosition'; | ||
/** Chat identifier */ | ||
chatId: number; | ||
/** New value of the order */ | ||
order: string; | ||
/** | ||
* New chat position. If new order is 0, then the chat needs to be removed from the | ||
* list | ||
*/ | ||
position: ChatPosition; | ||
} | ||
/** A chat was pinned or unpinned */ | ||
export interface UpdateChatIsPinned { | ||
_: 'updateChatIsPinned'; | ||
/** Chat identifier */ | ||
chatId: number; | ||
/** New value of is_pinned */ | ||
isPinned: boolean; | ||
/** New value of the chat order */ | ||
order: string; | ||
} | ||
/** A chat was marked as unread or was read */ | ||
@@ -209,12 +191,2 @@ export interface UpdateChatIsMarkedAsUnread { | ||
} | ||
/** A chat's is_sponsored field has changed */ | ||
export interface UpdateChatIsSponsored { | ||
_: 'updateChatIsSponsored'; | ||
/** Chat identifier */ | ||
chatId: number; | ||
/** New value of is_sponsored */ | ||
isSponsored: boolean; | ||
/** New value of chat order */ | ||
order: string; | ||
} | ||
/** A chat's has_scheduled_messages field has changed */ | ||
@@ -325,5 +297,11 @@ export interface UpdateChatHasScheduledMessages { | ||
draftMessage?: DraftMessage; | ||
/** New value of the chat order */ | ||
order: string; | ||
/** The new chat positions in the chat lists */ | ||
positions: ChatPosition[]; | ||
} | ||
/** The list of chat filters or a chat filter has changed */ | ||
export interface UpdateChatFilters { | ||
_: 'updateChatFilters'; | ||
/** The new list of chat filters */ | ||
chatFilters: ChatFilterInfo[]; | ||
} | ||
/** | ||
@@ -589,2 +567,8 @@ * The number of online group members has changed. This update with non-zero count is | ||
} | ||
/** A sticker set has changed */ | ||
export interface UpdateStickerSet { | ||
_: 'updateStickerSet'; | ||
/** The sticker set */ | ||
stickerSet: StickerSet; | ||
} | ||
/** The list of installed sticker sets was updated */ | ||
@@ -601,3 +585,6 @@ export interface UpdateInstalledStickerSets { | ||
_: 'updateTrendingStickerSets'; | ||
/** The new list of trending sticker sets */ | ||
/** | ||
* The prefix of the list of trending sticker sets with the newest trending sticker | ||
* sets | ||
*/ | ||
stickerSets: StickerSets; | ||
@@ -664,4 +651,4 @@ } | ||
/** | ||
* List of users nearby has changed. The update is sent only 60 seconds after a successful | ||
* searchChatsNearby request | ||
* The list of users nearby has changed. The update is sent only 60 seconds after a | ||
* successful searchChatsNearby request | ||
*/ | ||
@@ -673,2 +660,19 @@ export interface UpdateUsersNearby { | ||
} | ||
/** The list of supported dice emojis has changed */ | ||
export interface UpdateDiceEmojis { | ||
_: 'updateDiceEmojis'; | ||
/** The new list of supported dice emojis */ | ||
emojis: string[]; | ||
} | ||
/** | ||
* The parameters of animation search through GetOption("animation_search_bot_username") | ||
* bot has changed | ||
*/ | ||
export interface UpdateAnimationSearchParameters { | ||
_: 'updateAnimationSearchParameters'; | ||
/** Name of the animation search provider */ | ||
provider: string; | ||
/** The new list of emojis suggested for searching */ | ||
emojis: string[]; | ||
} | ||
/** A new incoming inline query; for bots only */ | ||
@@ -675,0 +679,0 @@ export interface UpdateNewInlineQuery { |
@@ -1,2 +0,2 @@ | ||
import { File, Minithumbnail, PhotoSize } from './index'; | ||
import { File, Minithumbnail, Thumbnail } from './index'; | ||
export declare type VideoUnion = Video; | ||
@@ -16,3 +16,6 @@ /** Describes a video file */ | ||
mimeType: string; | ||
/** True, if stickers were added to the video */ | ||
/** | ||
* True, if stickers were added to the video. The list of corresponding sticker sets | ||
* can be received using getAttachedStickerSets | ||
*/ | ||
hasStickers: boolean; | ||
@@ -23,6 +26,6 @@ /** True, if the video should be tried to be streamed */ | ||
minithumbnail?: Minithumbnail; | ||
/** Video thumbnail; as defined by the sender; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null */ | ||
thumbnail?: Thumbnail; | ||
/** File containing the video */ | ||
video: File; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { File, Minithumbnail, PhotoSize } from './index'; | ||
import { File, Minithumbnail, Thumbnail } from './index'; | ||
export declare type VideoNoteUnion = VideoNote; | ||
@@ -15,6 +15,6 @@ /** | ||
minithumbnail?: Minithumbnail; | ||
/** Video thumbnail; as defined by the sender; may be null */ | ||
thumbnail?: PhotoSize; | ||
/** Video thumbnail in JPEG format; as defined by the sender; may be null */ | ||
thumbnail?: Thumbnail; | ||
/** File containing the video */ | ||
video: File; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Animation, Audio, Document, Photo, Sticker, Video, VideoNote, VoiceNote } from './index'; | ||
import { Animation, Audio, Document, FormattedText, Photo, Sticker, Video, VideoNote, VoiceNote } from './index'; | ||
export declare type WebPageUnion = WebPage; | ||
@@ -20,3 +20,3 @@ /** Describes a web page preview */ | ||
/** Description of the content */ | ||
description: string; | ||
description: FormattedText; | ||
/** Image representing the content; may be null */ | ||
@@ -23,0 +23,0 @@ photo?: Photo; |
@@ -8,9 +8,6 @@ import { PageBlockUnion } from './index'; | ||
pageBlocks: PageBlockUnion[]; | ||
/** Number of the instant view views; 0 if unknown */ | ||
viewCount: number; | ||
/** Version of the instant view, currently can be 1 or 2 */ | ||
version: number; | ||
/** | ||
* Instant view URL; may be different from WebPage.url and must be used for the correct | ||
* anchors handling | ||
*/ | ||
url: string; | ||
/** True, if the instant view must be shown from right to left */ | ||
@@ -17,0 +14,0 @@ isRtl: boolean; |
@@ -21,2 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.on = exports.toObject = exports.isError = exports.createDeferred = exports.pick = void 0; | ||
var components_1 = require("./components"); | ||
@@ -23,0 +24,0 @@ function pick(obj, paths) { |
Sorry, the diff of this file is too big to display
957643
1424
20901