### GetBackgrounds Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.html Returns backgrounds installed by the user. ```APIDOC ## GetBackgrounds ### Description Returns backgrounds installed by the user. ### Method Not specified. ### Endpoint Not specified. ### Parameters - **for_chat** (boolean) - True, if the backgrounds are needed for a chat background. ### Request Example None provided. ### Response #### Success Response - **backgrounds** (array of Background) - A list of backgrounds. ``` -------------------------------- ### Search Installed Sticker Sets Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Searches for installed sticker sets. ```APIDOC ## SearchInstalledStickerSets ### Description Searches for installed sticker sets. ### Method (Not specified in source) ### Endpoint (Not specified in source) ### Parameters (Not specified in source) ### Request Example (Not specified in source) ### Response (Not specified in source) ``` -------------------------------- ### RecommendedChatFolders Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.html Contains a list of recommended chat folders. ```APIDOC ## TdApi.RecommendedChatFolders ### Description Contains a list of recommended chat folders. ### Type `static final class` ``` -------------------------------- ### Constructors Using TdApi.InputFile Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.InputFile.html Details constructors that accept TdApi.InputFile as a parameter, showing how to instantiate objects that require file inputs. ```APIDOC ## Constructors Accepting TdApi.InputFile ### Description This section lists constructors that take `TdApi.InputFile` or an array of `TdApi.InputFile` as parameters. ### Constructors - **`AddFavoriteSticker(TdApi.InputFile sticker)`**: Adds a new sticker to the list of favorite stickers. - **`AddRecentSticker(boolean isAttached, TdApi.InputFile sticker)`**: Manually adds a new sticker to the list of recently used stickers. - **`AddSavedAnimation(TdApi.InputFile animation)`**: Manually adds a new animation to the list of saved animations. - **`AddSavedNotificationSound(TdApi.InputFile sound)`**: Adds a new notification sound to the list of saved notification sounds. - **`GetStickerEmojis(TdApi.InputFile sticker)`**: Returns emoji corresponding to a sticker. - **`ImportMessages(long chatId, TdApi.InputFile messageFile, TdApi.InputFile[] attachedFiles)`**: Imports messages exported from another app. - **`InputBackgroundLocal(TdApi.InputFile background)`**: A background from a local file. - **`InputChatPhotoAnimation(TdApi.InputFile animation, double mainFrameTimestamp)`**: Represents an animation to be set as a profile photo. ``` -------------------------------- ### Reorder Installed Sticker Sets Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Reorders the installed sticker sets. ```APIDOC ## ReorderInstalledStickerSets ### Description Reorders the installed sticker sets. ### Method (Not specified in source) ### Endpoint (Not specified in source) ### Parameters (Not specified in source) ### Request Example (Not specified in source) ### Response (Not specified in source) ``` -------------------------------- ### Send Bot Start Message Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Sends a start message to a bot. ```APIDOC ## SendBotStartMessage ### Description Sends a start message to a bot. ### Method (Not specified in source) ### Endpoint (Not specified in source) ### Parameters (Not specified in source) ### Request Example (Not specified in source) ### Response (Not specified in source) ``` -------------------------------- ### BotInfo Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.BotMenuButton.html Constructor for creating a BotInfo object, which includes an optional BotMenuButton. ```APIDOC ## BotInfo Constructor ### Description Constructs a BotInfo object containing detailed information about a bot, including an optional menu button. ### Parameters - **menuButton** (TdApi.BotMenuButton) - Optional - The menu button to be displayed for the bot. ``` -------------------------------- ### Get Chat Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets information about a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChat ### Description Gets information about a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChat` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### TdApi.InputInvoice Usage in Constructors Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.InputInvoice.html Demonstrates the constructors that accept TdApi.InputInvoice as a parameter, showing how to initiate payment-related operations. ```APIDOC ## GetPaymentForm ### Description Returns an invoice payment form. ### Constructor `GetPaymentForm(TdApi.InputInvoice inputInvoice, TdApi.ThemeParameters theme)` ### Parameters - **inputInvoice** (TdApi.InputInvoice) - Required - The invoice details. - **theme** (TdApi.ThemeParameters) - Required - The theme parameters for the payment form. ``` ```APIDOC ## SendPaymentForm ### Description Sends a filled-out payment form to the bot for final verification. ### Constructor `SendPaymentForm(TdApi.InputInvoice inputInvoice, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount)` ### Parameters - **inputInvoice** (TdApi.InputInvoice) - Required - The invoice details. - **paymentFormId** (long) - Required - The ID of the payment form. - **orderInfoId** (String) - Required - The ID of the order information. - **shippingOptionId** (String) - Required - The ID of the selected shipping option. - **credentials** (TdApi.InputCredentials) - Required - The user's payment credentials. - **tipAmount** (long) - Required - The tip amount. ``` ```APIDOC ## ValidateOrderInfo ### Description Validates the order information provided by a user and returns the available shipping options for a flexible invoice. ### Constructor `ValidateOrderInfo(TdApi.InputInvoice inputInvoice, TdApi.OrderInfo orderInfo, boolean allowSave)` ### Parameters - **inputInvoice** (TdApi.InputInvoice) - Required - The invoice details. - **orderInfo** (TdApi.OrderInfo) - Required - The order information provided by the user. - **allowSave** (boolean) - Required - Whether to allow saving the order information. ``` -------------------------------- ### Get Chat History Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the chat history. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatHistory ### Description Gets the chat history. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatHistory` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Bot Name Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the name of a bot. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetBotName ### Description Gets the name of a bot. This method is applicable to chats of type 'private' and 'secret'. ### Method `getBotName` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### InputInlineQueryResultAudio Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.InputInlineQueryResultAudio.html Constructs an InputInlineQueryResultAudio object. This object represents a link to an MP3 audio file. ```APIDOC ## InputInlineQueryResultAudio Constructor ### Description Represents a link to an MP3 audio file. ### Parameters * **id** (String) - Required - Unique identifier of the query result. * **title** (String) - Required - Title of the audio file. * **performer** (String) - Optional - Performer of the audio file. * **audioUrl** (String) - Required - The URL of the audio file. * **audioDuration** (int) - Required - Audio file duration, in seconds. * **replyMarkup** (TdApi.ReplyMarkup) - Optional - The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null. * **inputMessageContent** (TdApi.InputMessageContent) - Required - The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAudio, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact. ``` -------------------------------- ### Constructors Using TdApi.RichText Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.RichText.html Lists constructors for various classes in `it.tdlight.jni` that accept `TdApi.RichText` as a parameter, showing how to instantiate these classes with rich text content. ```APIDOC ## Constructors Using TdApi.RichText This section lists constructors in `it.tdlight.jni` that have parameters of type `TdApi.RichText`. ### Constructors * `PageBlockAuthorDate(TdApi.RichText author, int publishDate)`: The author and publishing date of a page. * `PageBlockBlockQuote(TdApi.RichText text, TdApi.RichText credit)`: A block quote. * `PageBlockCaption(TdApi.RichText text, TdApi.RichText credit)`: Contains a caption of an instant view web page block, consisting of a text and a trailing credit. * `PageBlockDetails(TdApi.RichText header, TdApi.PageBlock[] pageBlocks, boolean isOpen)`: A collapsible block. * `PageBlockFooter(TdApi.RichText footer)`: The footer of a page. * `PageBlockHeader(TdApi.RichText header)`: A header. * `PageBlockKicker(TdApi.RichText kicker)`: A kicker. * `PageBlockParagraph(TdApi.RichText text)`: A text paragraph. * `PageBlockPreformatted(TdApi.RichText text, String language)`: A preformatted text paragraph. * `PageBlockPullQuote(TdApi.RichText text, TdApi.RichText credit)`: A pull quote. * `PageBlockRelatedArticles(TdApi.RichText header, TdApi.PageBlockRelatedArticle[] articles)`: Related articles. * `PageBlockSubheader(TdApi.RichText subheader)`: A subheader. * `PageBlockSubtitle(TdApi.RichText subtitle)`: The subtitle of a page. * `PageBlockTable(TdApi.RichText caption, TdApi.PageBlockTableCell[][] cells, boolean isBordered, boolean isStriped)`: A table. ``` -------------------------------- ### Get Background Url Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the URL for a background. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetBackgroundUrl ### Description Gets the URL for a background. This method is applicable to chats of type 'private' and 'secret'. ### Method `getBackgroundUrl` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Backgrounds Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a list of available backgrounds. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetBackgrounds ### Description Gets a list of available backgrounds. This method is applicable to chats of type 'private' and 'secret'. ### Method `getBackgrounds` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### TdApi.Audio in Constructors Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.Audio.html This section details the constructors in it.tdlight.jni that accept TdApi.Audio as a parameter, illustrating how audio objects are passed during object instantiation. ```APIDOC ## Constructors Using TdApi.Audio ### Description Lists constructors in `it.tdlight.jni` with parameters of type `TdApi.Audio`. ### Constructors - `InlineQueryResultAudio(String id, TdApi.Audio audio)` - Represents an audio file. - `MessageAudio(TdApi.Audio audio, TdApi.FormattedText caption)` - An audio message. - `PageBlockAudio(TdApi.Audio audio, TdApi.PageBlockCaption caption)` - An audio file. - `PushMessageContentAudio(TdApi.Audio audio, boolean isPinned)` - An audio message. - `WebPage(String url, String displayUrl, String type, String siteName, String title, TdApi.FormattedText description, TdApi.Photo photo, String embedUrl, String embedType, int embedWidth, int embedHeight, int duration, String author, TdApi.Animation animation, TdApi.Audio audio, TdApi.Document document, TdApi.Sticker sticker, TdApi.Video video, TdApi.VideoNote videoNote, TdApi.VoiceNote voiceNote, int instantViewVersion)` - Describes a web page preview. ``` -------------------------------- ### BasicGroupFullInfo Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.BasicGroupFullInfo.html Constructs a new BasicGroupFullInfo object with all fields initialized. ```APIDOC ## BasicGroupFullInfo() ### Description Contains full information about a basic group. ### Constructor `public BasicGroupFullInfo()` ``` ```APIDOC ## BasicGroupFullInfo(TdApi.ChatPhoto photo, String description, long creatorUserId, TdApi.ChatMember[] members, boolean canHideMembers, boolean canToggleAggressiveAntiSpam, TdApi.ChatInviteLink inviteLink, TdApi.BotCommands[] botCommands) ### Description Contains full information about a basic group. ### Parameters * `photo` (TdApi.ChatPhoto) - Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo. * `description` (String) - Group description. Updated only after the basic group is opened. * `creatorUserId` (long) - User identifier of the creator of the group; 0 if unknown. * `members` (TdApi.ChatMember[]) - Group members. * `canHideMembers` (boolean) - True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators after upgrading the basic group to a supergroup. * `canToggleAggressiveAntiSpam` (boolean) - True, if aggressive anti-spam checks can be enabled or disabled in the supergroup after upgrading the basic group to a supergroup. * `inviteLink` (TdApi.ChatInviteLink) - Primary invite link for this group; may be null. For chat administrators with canInviteUsers right only. Updated only after the basic group is opened. * `botCommands` (TdApi.BotCommands[]) - List of commands of bots in the group. ### Constructor `public BasicGroupFullInfo(TdApi.ChatPhoto photo, String description, long creatorUserId, TdApi.ChatMember[] members, boolean canHideMembers, boolean canToggleAggressiveAntiSpam, TdApi.ChatInviteLink inviteLink, TdApi.BotCommands[] botCommands)` ``` ```APIDOC ## BasicGroupFullInfo(DataInput input) ### Description Contains full information about a basic group. ### Parameters * `input` (DataInput) - The input stream to read data from. ### Throws * `IOException` - If an I/O error occurs during deserialization. ### Constructor `public BasicGroupFullInfo(DataInput input)` ``` -------------------------------- ### Get Autosave Settings Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the autosave settings. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetAutosaveSettings ### Description Gets the autosave settings. This method is applicable to chats of type 'private' and 'secret'. ### Method `getAutosaveSettings` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Application Config Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the application configuration. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetApplicationConfig ### Description Gets the application configuration. This method is applicable to chats of type 'private' and 'secret'. ### Method `getApplicationConfig` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### CreateChatFolder Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.Function.html Creates new chat folder. ```APIDOC ## CreateChatFolder ### Description Creates new chat folder. ### Method Not specified (likely a function call within the TdApi SDK) ### Endpoint Not applicable (SDK function) ### Parameters Not specified in the source text. ### Request Example Not specified in the source text. ### Response Not specified in the source text. ``` -------------------------------- ### Get Chat Member Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets information about a chat member. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatMember ### Description Gets information about a chat member. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatMember` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Constructors with TdApi.PremiumFeature parameters Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.PremiumFeature.html Lists constructors in it.tdlight.jni that accept TdApi.PremiumFeature as a parameter, showing how TdApi.PremiumFeature is used in object instantiation. ```APIDOC ## Constructors with TdApi.PremiumFeature parameters ### Description Constructors that take TdApi.PremiumFeature as a parameter. ### Constructors - **PremiumFeaturePromotionAnimation(TdApi.PremiumFeature feature, TdApi.Animation animation)**: Describes a promotion animation for a Premium feature. - **PremiumFeatures(TdApi.PremiumFeature[] features, TdApi.PremiumLimit[] limits, TdApi.InternalLinkType paymentLink)**: Contains information about features, available to Premium users. - **PremiumSourceFeature(TdApi.PremiumFeature feature)**: A user tried to use a Premium feature. - **ViewPremiumFeature(TdApi.PremiumFeature feature)**: Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen. ``` -------------------------------- ### Get Chat Invite Links Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a list of chat invite links. This method can only be used by chat administrators. ```APIDOC ## GetChatInviteLinks ### Description Gets a list of chat invite links. This method can only be used by chat administrators. ### Method `getChatInviteLinks` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### RecommendedChatFolder Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.html Describes a recommended chat folder. ```APIDOC ## TdApi.RecommendedChatFolder ### Description Describes a recommended chat folder. ### Type `static final class` ``` -------------------------------- ### InputInlineQueryResultVideo Methods Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.InputInlineQueryResultVideo.html Methods available for the InputInlineQueryResultVideo class, including serialization and constructor details. ```APIDOC ## getConstructor() ### Description Returns the constructor type of the object. ### Method `public int getConstructor()` Specified by: `getConstructor` in class `TdApi.Object` ``` ```APIDOC ## serialize(DataOutput output) ### Description Serializes the object to the given output stream. ### Method `public void serialize(DataOutput output) throws IOException` Specified by: `serialize` in class `TdApi.Object` Throws: `IOException` ``` ```APIDOC ## equals(Object o) ### Description Indicates whether some other object is "equal to" this one. ### Method `public boolean equals(Object o)` Overrides: `equals` in class `Object` ``` ```APIDOC ## hashCode() ### Description Returns a hash code value for the object. ### Method `public int hashCode()` Overrides: `hashCode` in class `Object` ``` -------------------------------- ### Get Chat Folder Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets information about a chat folder. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatFolder ### Description Gets information about a chat folder. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatFolder` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Chat Administrators Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a list of administrators for a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatAdministrators ### Description Gets a list of administrators for a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatAdministrators` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### UserFullInfo Constructors Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.UserFullInfo.html Details the constructors for the UserFullInfo class, used for initializing user information objects. ```APIDOC ## UserFullInfo Constructors ### UserFullInfo() public UserFullInfo() Contains full information about a user. ### UserFullInfo(...) public UserFullInfo(TdApi.ChatPhoto personalPhoto, TdApi.ChatPhoto photo, TdApi.ChatPhoto publicPhoto, boolean isBlocked, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoNoteMessages, boolean needPhoneNumberPrivacyException, TdApi.FormattedText bio, TdApi.PremiumPaymentOption[] premiumGiftOptions, int groupInCommonCount, TdApi.BotInfo botInfo) Contains full information about a user. ``` -------------------------------- ### OpenWebApp Constructor with parameters Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.OpenWebApp.html Informs TDLib that a Web App is being opened from various sources. This constructor allows specifying all relevant details for opening the Web App. ```APIDOC ## OpenWebApp(chatId, botUserId, url, theme, applicationName, messageThreadId, replyToMessageId) ### Description Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. For each bot, a confirmation alert about data sent to the bot must be shown once. Returns `WebAppInfo`. ### Method OpenWebApp ### Parameters #### Path Parameters - **chatId** (long) - Required - Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats. - **botUserId** (long) - Required - Identifier of the bot, providing the Web App. - **url** (String) - Required - The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise. - **theme** (TdApi.ThemeParameters) - Optional - Preferred Web App theme; pass null to use the default theme. - **applicationName** (String) - Optional - Short name of the application; 0-64 English letters, digits, and underscores. - **messageThreadId** (long) - Optional - If not 0, a message thread identifier in which the message will be sent. - **replyToMessageId** (long) - Optional - Identifier of the replied message for the message sent by the Web App; 0 if none. ### Response #### Success Response (WebAppInfo) This method returns `WebAppInfo` upon successful execution. ``` -------------------------------- ### Get Bot Info Description Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the description of a bot. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetBotInfoDescription ### Description Gets the description of a bot. This method is applicable to chats of type 'private' and 'secret'. ### Method `getBotInfoDescription` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### TdApi.BackgroundFill Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.BackgroundFill.html Initializes a new instance of the TdApi.BackgroundFill class. ```APIDOC ## Constructor ### Description Initializes a new instance of the TdApi.BackgroundFill class. ### Signature `BackgroundFill()` ``` -------------------------------- ### Get Basic Group Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets information about a basic group. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetBasicGroup ### Description Gets information about a basic group. This method is applicable to chats of type 'private' and 'secret'. ### Method `getBasicGroup` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Animated Emoji Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets an animated emoji by its name. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetAnimatedEmoji ### Description Gets an animated emoji by its name. This method is applicable to chats of type 'private' and 'secret'. ### Method `getAnimatedEmoji` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### WebPage Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.WebPage.html Constructs a WebPage object with detailed information about a web page preview. This constructor allows for comprehensive initialization of all available fields. ```APIDOC ## Constructor WebPage ### Description Constructs a WebPage object describing a web page preview. ### Parameters * **url** (String) - Required - Original URL of the link. * **displayUrl** (String) - Required - URL to display. * **type** (String) - Required - Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else. * **siteName** (String) - Required - Short name of the site (e.g., Google Docs, App Store). * **title** (String) - Required - Title of the content. * **description** (TdApi.FormattedText) - Required - Description of the content. * **photo** (TdApi.Photo) - Optional - Image representing the content; may be null. * **embedUrl** (String) - Optional - URL to show in the embedded preview. * **embedType** (String) - Optional - MIME type of the embedded preview, (e.g., text/html or video/mp4). * **embedWidth** (int) - Optional - Width of the embedded preview. * **embedHeight** (int) - Optional - Height of the embedded preview. * **duration** (int) - Optional - Duration of the content, in seconds. * **author** (String) - Optional - Author of the content. * **animation** (TdApi.Animation) - Optional - Preview of the content as an animation, if available; may be null. * **audio** (TdApi.Audio) - Optional - Preview of the content as an audio file, if available; may be null. * **document** (TdApi.Document) - Optional - Preview of the content as a document, if available; may be null. * **sticker** (TdApi.Sticker) - Optional - Preview of the content as a sticker for small WEBP files, if available; may be null. * **video** (TdApi.Video) - Optional - Preview of the content as a video, if available; may be null. * **videoNote** (TdApi.VideoNote) - Optional - Preview of the content as a video note, if available; may be null. * **voiceNote** (TdApi.VoiceNote) - Optional - Preview of the content as a voice note, if available; may be null. * **instantViewVersion** (int) - Optional - Version of web page instant view (currently, can be 1 or 2); 0 if none. ``` -------------------------------- ### Get All Passport Elements Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets all passport elements for the user. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetAllPassportElements ### Description Gets all passport elements for the user. This method is applicable to chats of type 'private' and 'secret'. ### Method `getAllPassportElements` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### TdApi.ChatPhotoInfo in Constructors Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.ChatPhotoInfo.html Illustrates the constructors that accept TdApi.ChatPhotoInfo as a parameter. ```APIDOC ## Constructors accepting TdApi.ChatPhotoInfo ### TdApi.Chat constructor **Description**: A chat. **Parameters**: - **photo** (TdApi.ChatPhotoInfo) - Chat photo. ### TdApi.ChatInviteLinkInfo constructor **Description**: Contains information about a chat invite link. **Parameters**: - **photo** (TdApi.ChatPhotoInfo) - Chat photo. ### TdApi.PageBlockChatLink constructor **Description**: A link to a chat. **Parameters**: - **photo** (TdApi.ChatPhotoInfo) - Chat photo. ### TdApi.UpdateChatPhoto constructor **Description**: A chat photo was changed. **Parameters**: - **photo** (TdApi.ChatPhotoInfo) - The new chat photo. ``` -------------------------------- ### Get Chat Message Position Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the position of a message in a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatMessagePosition ### Description Gets the position of a message in a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatMessagePosition` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### ForumTopic Constructors Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.ForumTopic.html Provides details on how to construct a ForumTopic object, including a default constructor and a parameterized constructor. ```APIDOC ## ForumTopic Constructors ### ForumTopic() Describes a forum topic. ### ForumTopic(TdApi.ForumTopicInfo info, TdApi.Message lastMessage, boolean isPinned, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.DraftMessage draftMessage) Describes a forum topic. Parameters: - `info` (TdApi.ForumTopicInfo) - Basic information about the topic. - `lastMessage` (TdApi.Message) - Last message in the topic; may be null if unknown. - `isPinned` (boolean) - True, if the topic is pinned in the topic list. - `unreadCount` (int) - Number of unread messages in the topic. - `lastReadInboxMessageId` (long) - Identifier of the last read incoming message. - `lastReadOutboxMessageId` (long) - Identifier of the last read outgoing message. - `unreadMentionCount` (int) - Number of unread messages with a mention/reply in the topic. - `unreadReactionCount` (int) - Number of messages with unread reactions in the topic. - `notificationSettings` (TdApi.ChatNotificationSettings) - Notification settings for the topic. - `draftMessage` (TdApi.DraftMessage) - A draft of a message in the topic; may be null. ``` -------------------------------- ### Constructors with TdApi.InputBackground Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.InputBackground.html Shows constructors that take TdApi.InputBackground as a parameter for setting or changing backgrounds. ```APIDOC ## Constructors with TdApi.InputBackground ### Description Details constructors that accept `TdApi.InputBackground` to modify user or chat backgrounds. ### Constructors - **`SetBackground(TdApi.InputBackground background, TdApi.BackgroundType type, boolean forDarkTheme)`**: Changes the background selected by the user and adds it to the list of installed backgrounds. - **`SetChatBackground(long chatId, TdApi.InputBackground background, TdApi.BackgroundType type, int darkThemeDimming)`**: Changes the background in a specific chat. ``` -------------------------------- ### Get Chat Message Count Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the message count for a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatMessageCount ### Description Gets the message count for a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatMessageCount` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Chat Message Calendar Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a message calendar for a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatMessageCalendar ### Description Gets a message calendar for a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatMessageCalendar` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### TdApi.CreateChatFolder Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-summary.html Creates a new chat folder. ```APIDOC ## TdApi.CreateChatFolder ### Description Creates a new chat folder. ### Method Not specified (assumed to be an SDK method call) ### Endpoint Not applicable (SDK method) ### Parameters None explicitly listed in the source. ### Request Example ```json { "example": "Not specified" } ``` ### Response #### Success Response Returns the created chat folder object. #### Response Example ```json { "example": "Not specified" } ``` ``` -------------------------------- ### Get Chat Message By Date Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a message from a chat by date. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatMessageByDate ### Description Gets a message from a chat by date. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatMessageByDate` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### KeyboardButtonTypeWebApp Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.KeyboardButtonTypeWebApp.html Constructs a KeyboardButtonTypeWebApp object. This button opens a Web App by calling getWebAppUrl. ```APIDOC ## KeyboardButtonTypeWebApp Constructor ### Description Constructs a KeyboardButtonTypeWebApp object. This button opens a Web App by calling getWebAppUrl. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Constructor Signature `public KeyboardButtonTypeWebApp(String url)` ### Parameters * **url** (String) - Required - An HTTP URL to pass to getWebAppUrl. ``` -------------------------------- ### Get Chat Event Log Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the event log for a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatEventLog ### Description Gets the event log for a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatEventLog` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### GetCommands Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.Function.html Returns detailed statistics about a chat. ```APIDOC ## GetCommands ### Description Returns detailed statistics about a chat. ### Method Not specified (likely a function call in an SDK) ### Endpoint Not applicable (SDK function) ### Parameters None explicitly defined in the source text. ### Request Example Not applicable (SDK function) ### Response Not specified in the source text. ``` -------------------------------- ### Get Callback Query Answer Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the answer to a callback query. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetCallbackQueryAnswer ### Description Gets the answer to a callback query. This method is applicable to chats of type 'private' and 'secret'. ### Method `getCallbackQueryAnswer` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Constructors Using TdApi.PremiumLimitType Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.PremiumLimitType.html Shows constructors in it.tdlight.jni that accept TdApi.PremiumLimitType as a parameter. ```APIDOC ## Constructors Using TdApi.PremiumLimitType ### Description Constructors that take a TdApi.PremiumLimitType parameter to define or identify limits. ### Constructors - **GetPremiumLimit(TdApi.PremiumLimitType limitType)** - Description: Returns information about a limit, increased for Premium users. - **PremiumLimit(TdApi.PremiumLimitType type, int defaultValue, int premiumValue)** - Description: Contains information about a limit, increased for Premium users. - **PremiumSourceLimitExceeded(TdApi.PremiumLimitType limitType)** - Description: Indicates that a limit was exceeded. ``` -------------------------------- ### Get Bank Card Info Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets information about a bank card. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetBankCardInfo ### Description Gets information about a bank card. This method is applicable to chats of type 'private' and 'secret'. ### Method `getBankCardInfo` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### VideoNote Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.SpeechRecognitionResult.html Constructor for VideoNote, including speech recognition result. ```APIDOC ## VideoNote(int duration, byte[] waveform, int length, TdApi.Minithumbnail minithumbnail, TdApi.Thumbnail thumbnail, TdApi.SpeechRecognitionResult speechRecognitionResult, TdApi.File video) ### Description Describes a video note. ### Parameters - **duration** (int) - Description - **waveform** (byte[]) - Description - **length** (int) - Description - **minithumbnail** (TdApi.Minithumbnail) - Description - **thumbnail** (TdApi.Thumbnail) - Description - **speechRecognitionResult** (TdApi.SpeechRecognitionResult) - Description - **video** (TdApi.File) - Description ``` -------------------------------- ### Constructors with TdApi.ChatList Parameters Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/class-use/TdApi.ChatList.html Lists constructors that accept TdApi.ChatList as a parameter, along with their descriptions. ```APIDOC ## Constructors with TdApi.ChatList Parameters ### Description Constructors in `it.tdlight.jni` that take `TdApi.ChatList` as a parameter. ### Constructors - **`AddChatToList(long chatId, TdApi.ChatList chatList)`**: Adds a chat to a chat list. - **`ChatLists(TdApi.ChatList[] chatLists)`**: Contains a list of chat lists. - **`ChatPosition(TdApi.ChatList list, long order, boolean isPinned, TdApi.ChatSource source)`**: Describes a position of a chat in a chat list. - **`GetChats(TdApi.ChatList chatList, int limit)`**: Returns an ordered list of chats from the beginning of a chat list. - **`LoadChats(TdApi.ChatList chatList, int limit)`**: Loads more chats from a chat list. - **`ReadChatList(TdApi.ChatList chatList)`**: Traverse all chats in a chat list and marks all messages in the chats as read. - **`SearchMessages(TdApi.ChatList chatList, String query, String offset, int limit, TdApi.SearchMessagesFilter filter, int minDate, int maxDate)`**: Searches for messages in all chats except secret chats. - **`SetPinnedChats(TdApi.ChatList chatList, long[] chatIds)`**: Changes the order of pinned chats. - **`ToggleChatIsPinned(TdApi.ChatList chatList, long chatId, boolean isPinned)`**: Changes the pinned state of a chat. - **`UpdateUnreadChatCount(TdApi.ChatList chatList, int totalCount, int unreadCount, int unreadUnmutedCount, int markedAsUnreadCount, int markedAsUnreadUnmutedCount)`**: Number of unread chats, i.e. - **`UpdateUnreadMessageCount(TdApi.ChatList chatList, int unreadCount, int unreadUnmutedCount)`**: Number of unread messages in a chat list has changed. ``` -------------------------------- ### Get Application Download Link Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the download link for the application. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetApplicationDownloadLink ### Description Gets the download link for the application. This method is applicable to chats of type 'private' and 'secret'. ### Method `getApplicationDownloadLink` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### InputInlineQueryResultVideo Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.InputInlineQueryResultVideo.html Constructs an InputInlineQueryResultVideo object. This class represents a link to a page containing an embedded video player or a video file. ```APIDOC ## InputInlineQueryResultVideo() ### Description Represents a link to a page containing an embedded video player or a video file. ### Constructor `public InputInlineQueryResultVideo()` ``` ```APIDOC ## InputInlineQueryResultVideo(String id, String title, String description, String thumbnailUrl, String videoUrl, String mimeType, int videoWidth, int videoHeight, int videoDuration, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) ### Description Represents a link to a page containing an embedded video player or a video file. ### Parameters - **id** (String) - Unique identifier of the query result. - **title** (String) - Title of the result. - **description** (String) - A short description of the result, if known. - **thumbnailUrl** (String) - The URL of the video thumbnail (JPEG), if it exists. - **videoUrl** (String) - URL of the embedded video player or video file. - **mimeType** (String) - MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently supported. - **videoWidth** (int) - Width of the video. - **videoHeight** (int) - Height of the video. - **videoDuration** (int) - Video duration, in seconds. - **replyMarkup** (TdApi.ReplyMarkup) - The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null. - **inputMessageContent** (TdApi.InputMessageContent) - The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVideo, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact. ### Constructor `public InputInlineQueryResultVideo(String id, String title, String description, String thumbnailUrl, String videoUrl, String mimeType, int videoWidth, int videoHeight, int videoDuration, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent)` ``` -------------------------------- ### Get Account Ttl Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets the time-to-live of the user's account. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetAccountTtl ### Description Gets the time-to-live of the user's account. This method is applicable to chats of type 'private' and 'secret'. ### Method `getAccountTtl` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Chat Join Requests Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a list of join requests for a chat. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatJoinRequests ### Description Gets a list of join requests for a chat. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatJoinRequests` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### OpenWebApp Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Opens a web app. ```APIDOC ## OpenWebApp ### Description Opens a web app. ### Method Not specified (assumed to be a method call within the TdApi library). ### Endpoint Not applicable (JNI method). ### Parameters None explicitly mentioned. ### Request Example ``` it.tdlight.jni.TdApi.OpenWebApp openWebApp = new it.tdlight.jni.TdApi.OpenWebApp(); ``` ### Response Details about the response are not provided in the source. ``` -------------------------------- ### ChatFolder Constructor Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.ChatFolder.html Represents a folder for user chats. This constructor initializes a new ChatFolder object with specified properties. ```APIDOC ## ChatFolder Constructor ### Description Represents a folder for user chats. This constructor initializes a new ChatFolder object with specified properties. ### Method `public ChatFolder(String title, TdApi.ChatFolderIcon icon, boolean isShareable, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels)` ### Parameters #### Path Parameters - **title** (String) - The title of the folder; 1-12 characters without line feeds. - **icon** (TdApi.ChatFolderIcon) - The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder. - **isShareable** (boolean) - True, if at least one link has been created for the folder. - **pinnedChatIds** (long[]) - The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium. - **includedChatIds** (long[]) - The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium. - **excludedChatIds** (long[]) - The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium. - **excludeMuted** (boolean) - True, if muted chats need to be excluded. - **excludeRead** (boolean) - True, if read chats need to be excluded. - **excludeArchived** (boolean) - True, if archived chats need to be excluded. - **includeContacts** (boolean) - True, if contacts need to be included. - **includeNonContacts** (boolean) - True, if non-contact users need to be included. - **includeBots** (boolean) - True, if bots need to be included. - **includeGroups** (boolean) - True, if basic groups and supergroups need to be included. - **includeChannels** (boolean) - True, if channels need to be included. ### Throws - `IOException` ``` -------------------------------- ### Get Chat Invite Link Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets information about a chat invite link. This method is applicable to chats of type 'private' and 'secret'. ```APIDOC ## GetChatInviteLink ### Description Gets information about a chat invite link. This method is applicable to chats of type 'private' and 'secret'. ### Method `getChatInviteLink` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### Get Chat Folder Invite Links Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/package-tree.html Gets a list of invite links for a chat folder. This method can only be used by chat administrators. ```APIDOC ## GetChatFolderInviteLinks ### Description Gets a list of invite links for a chat folder. This method can only be used by chat administrators. ### Method `getChatFolderInviteLinks` ### Parameters None explicitly documented in the provided text. ``` -------------------------------- ### InputBackground Types Source: https://tdlight-team.github.io/tdlight-docs/tdlight.api/it/tdlight/jni/TdApi.html Abstract base class and concrete types for input backgrounds. ```APIDOC ## InputBackground Types This section details the types for input backgrounds. ### TdApi.InputBackgroundLocal A background from a local file. ### TdApi.InputBackgroundPrevious A background previously set in the chat; for chat backgrounds only. ### TdApi.InputBackgroundRemote A background from the server. ```