Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
import * as mtkruto from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Classes

Sends a Telegram Passport authorization form, effectively sharing data with the service

Cancel the code that was sent to verify an email to use as 2FA recovery method.

Change settings related to a session.

Change the phone number of the current account

Validates a username and checks availability.

Clears list of recently used emoji statuses

Verify an email to use as 2FA recovery method.

Confirm a phone number to cancel account deletion, for more info click here »

Create a theme

Abort a pending 2FA password reset, see here for more info »

Delete the user's account from the telegram servers.

Clear all peer-specific autosave settings.

Get days to live of account

Returns a Telegram Passport authorization form for sharing data with a service

Get logged-in sessions

Get media autodownload settings

Get autosave settings

Get a list of default suggested channel emoji statuses.

Returns fetch the full list of custom emoji IDs » that cannot be used in channel emoji statuses ».

Get all available chat themes ».

Whether the user will receive notifications when contacts sign up

Get sensitive content settings

Get a set of suggested custom emoji stickers that can be used in an accent color pattern.

Get a list of default suggested emoji statuses

Get a set of suggested custom emoji stickers that can be used as group picture

Get a set of suggested custom emoji stickers that can be used as profile picture

Get global privacy settings

Get info about multiple wallpapers

Returns list of chats with non-default notification settings

Gets current notification settings for a given user/group, from all users/all groups.

Obtain configuration for two-factor authorization with password

Get private info associated to the password info (recovery email, telegram passport info & so on)

Get privacy settings of current account

Get recently used emoji statuses

Fetch saved notification sounds

Get theme information

Get installed themes

Get temporary payment password

Get info about a certain wallpaper

Returns a list of available wallpapers.

Get web login widget authorizations

Install a theme

Install wallpaper

Invalidate the specified login codes, see here » for more info.

Register device to receive PUSH notifications

Reorder usernames associated with the currently logged-in user.

Report a peer for violation of telegram's Terms of Service

Report a profile photo of a dialog

Resend the code to verify an email to use as 2FA recovery method.

Log out an active authorized session by its hash

Resets all notification settings from users and groups.

Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info »

Delete all installed wallpapers, reverting to the default wallpaper set.

Log out an active web telegram login session

Reset all active web telegram login sessions

Change media autodownload settings

Modify autosave settings

Save or remove saved notification sound.

Save a theme

Install/uninstall wallpaper

Verify a new phone number to associate to the current account

Send confirmation code to cancel account deletion, for more info click here »

Send an email verification code.

Send the verification phone code for telegram passport.

Set account self-destruction period

Set time-to-live of current session

Toggle contact sign up notifications

Set sensitive content settings (for viewing or hiding NSFW content)

Set global privacy settings

Change privacy settings of current account

Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.

Deletes a device by its token, stops sending PUSH-notifications to it.

Update the accent color and background custom emoji » of the current account.

When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.

Set an emoji status

Edits notification settings from a given user/group, from all users/all groups.

Set a new 2FA password

Updates user profile.

Updates online user status.

Update theme

Changes username for the current user.

Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.

Upload theme

Create and upload a new wallpaper

Verify an email address.

Verify a phone number for telegram passport.

Accept QR code login token, logging in the app that generated it.

Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.

Cancel the login verification code

Try logging to an account protected by a 2FA password.

Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.

Delete all temporary authorization keys except for the ones specified

Returns data for copying authorization to another data-center.

Generate a login token, for login via QR code.
The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link » in the QR code.

Logs in a user using a key transmitted from his native data-center.

Login as a bot

Login using a redirected login token, generated in case of DC mismatch during QR code login.

Login by importing an authorization token

Logs out the user.

Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.

Request an SMS code via Firebase.

Request recovery code of a 2FA password, only for accounts with a recovery email configured.

Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.

Terminates all user's authorized sessions except for the current one.

Reset the login email ».

Send the verification code for login

Signs in a user with a validated phone number.

Registers a validated phone number in the system.

Allow the specified bot to send us messages

Answers a custom query; for bots only

Check whether the specified bot can send us messages

Obtain a list of bot commands for the specified bot scope and language code

Get localized name, about text and description of a bot (or of the current account, if called by a bot).

Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.

Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ».

Reorder usernames associated to a bot we own.

Clear bot commands for the specified bot scope and language code

Sends a custom request; for bots only

Set the default suggested admin rights for bots being added as admins to channels, see here for more info on how to handle them ».

Set bot command list

Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ».

Set localized name, about text and description of a bot (or of the current account, if called by a bot).

Sets the menu button action » for a given user or for all users

Activate or deactivate a purchased fragment.com username associated to a bot we own.

Check if a username is free and can be assigned to a channel/supergroup

Informs the server that the user has either:

Convert a supergroup to a gigagroup, when requested by channel suggestions.

Create a forum topic; requires manage_topics rights.

Disable all purchased usernames of a supergroup or channel

Delete the history of a supergroup

Delete messages in a channel/supergroup

Delete all messages sent by a specific participant of a given supergroup

Delete message history of a forum topic

Modify the admin rights of a user in a supergroup/channel.

Ban/unban/kick a user in a supergroup/channel.

Transfer channel ownership

Edit location of geogroup, see here » for more info on geogroups.

Change the photo of a channel/supergroup

Edit the name of a channel/supergroup

Get link and embed info of a message in a channel/supergroup

Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.

Get the admin log of a channel/supergroup

Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.

Get info about channels/supergroups

Get forum topics by their ID

Get full info about a supergroup, gigagroup or channel

Get all groups that can be used as discussion groups.

Get inactive channels and supergroups

Get channel/supergroup messages

Get info about a channel/supergroup participant

Get the participants of a supergroup/channel

Obtains a list of peers that can be used to send messages in a specific group

Get a list of sponsored messages

Invite users to a channel/supergroup

Join a channel/supergroup

Mark channel/supergroup history as read

Mark channel/supergroup message contents as read

Reorder pinned forum topics

Reorder active usernames

Report a native antispam false positive

Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup

Associate a group to a channel as discussion group for that channel

Associate a stickerset to the supergroup

Enable or disable the native antispam system.

Enable or disable forum functionality in a supergroup.

Set whether all users should request admin approval to join the group ».

Hide or display the participants list in a supergroup.

Hide/unhide message history for new channel/supergroup users

Enable/disable message signatures in channels

Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds

Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.

Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.

Set an emoji status for a channel.

Pin or unpin forum topics

Change or remove the username of a supergroup/channel

Mark a specific sponsored message as read

Obtain information about a chat folder deep link ».

Delete a previously created chat folder deep link ».

Export a folder », creating a chat folder deep link ».

Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »).

List all chat folder deep links » associated to a folder

Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted.

Dismiss new pending peers recently added to a chat folder deep link ».

Import a chat folder deep link », joining some or all the chats in the folder.

Join channels and supergroups recently added to a chat folder deep link ».

Delete a folder imported using a chat folder deep link »

If the add contact action bar is active, add that user as contact

Add an existing telegram user as contact.

Adds a peer to a blocklist, see here » for more info.

Stop getting notifications about discussion replies of a certain user in @replies

Delete contacts by phone number

Deletes several contacts from the list.

Edit the close friends list, see here » for more info.

Generates a temporary profile link for the currently logged-in user.

Returns the list of blocked users.

Get the telegram IDs of all contacts.
Returns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).

Returns the current user's contact list.

Get users and geochats near you, see here » for more info.

Get all contacts, requires a takeout session, see here » for more info.

Use this method to obtain the online statuses of all contacts with an accessible Telegram account.

Get most used peers

Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.

Obtain user info from a temporary profile link.

Removes all contacts without an associated Telegram account.

Reset rating of top peer

Resolve a phone number to get user info, if their privacy settings allow it.

Resolve a @username to get peer info

Returns users found by username substring.

Replace the contents of an entire blocklist, see here for more info ».

Enable/disable top peers

Deletes a peer from a blocklist, see here » for more info.

Edit peers in peer folder

c
Function_
abstract

Accept the new terms of service

Internal use

Get app-specific configuration, see client configuration for more info on the result.

Returns information on update availability for the current application.

Get configuration for CDN file downloads.

Returns current configuration, including data center configuration.

Get name, ISO code, localized name and phone codes/patterns of all available countries

Get info about an unsupported deep link, see here for more info ».

Returns localized text of a text message with an invitation.

Returns info on data center nearest to the user.

Get passport configuration

Get the set of accent color palettes » that can be used for message accents.

Get the set of accent color palettes » that can be used in profile page backgrounds.

Get Telegram Premium promotion information

Get MTProxy/Public Service Announcement information

Get recently used t.me links.

Returns the support user for the "ask a question" feature.

Get localized name of the telegram support user

Look for updates of telegram's terms of service

Can only be used by TSF members to obtain internal information.

Hide MTProxy/Public Service Announcement information

Saves logs of application on the server.

Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only

Initialize connection

Invokes a query after successful completion of one of the previous queries.

Invokes a query after a successful completion of previous queries

Invoke the specified query using the specified API layer

Invoke with the given message range

Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).

Get new strings in language pack

Get localization pack strings

Get information about a language in a localization pack

Get information about all languages in a localization pack

Get strings from a language pack

Confirms creation of a secret chat

Use this to accept a Seamless Telegram Login authorization request, for more info click here »

Adds a user to a chat and sends a service message on it.

Check the validity of a chat invite link and get basic info about it

Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ».

Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ».

Clear all drafts.

Clear recently used message reactions

Clear recent stickers

Creates a new chat.

Delete a chat

Deletes a user from a chat and sends a service message on it.

Delete a chat invite

Deletes communication history.

Deletes messages by their identifiers.

Delete the entire phone call history.

Delete all revoked chat invites

Deletes messages forwarded from a specific peer to saved messages ».

Delete scheduled messages

Cancels a request for creation and/or delete info on secret chat.

Edit the description of a group/supergroup/channel.

Make a user admin in a basic group.

Edit the default banned rights of a channel/supergroup/group.

Changes chat photo and sends a service message on it

Changes chat name and sends a service message on it.

Edit an exported chat invite

Edit an inline bot message

Edit message

Export an invite link for a chat

Mark or unmark a sticker as favorite

Forwards messages by their IDs.

Get info about chat invites generated by admins.

Return all message drafts.
Returns all the latest updateDraftMessage updates related to all chats with drafts.

Get all installed stickers

Get all archived stickers

Get stickers attached to a photo or video

Returns installed attachment menu bot mini apps »

Obtain available message reactions »

Obtain information about a direct link Mini App

Press an inline callback button and get a callback answer from the bot

Get info about the users that joined the chat using a specific chat invite

Returns chat basic info on their IDs.

Get chats in common with a user

Gets the default value of the Time-To-Live setting, applied to all new chats.

Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.

Get folders

Returns the current user dialog list.

Get dialogs manually marked as unread

Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group

Get a document by its SHA256 hash, mainly used for gifs

Represents a list of emoji categories, to be used when selecting custom emojis.

Get localized emoji keywords ».

Get changed emoji keywords ».

Obtain a list of related languages that must be used when fetching emoji keyword lists ».

Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.

Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.

Gets the list of currently installed custom emoji stickersets.

Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords ». The URL will be valid for 30 seconds after generation.

Get info about a chat invite

Get info about the chat invites of a specific chat

Get information about extended media

Get faved stickers

Gets featured custom emoji stickersets.

Get featured stickers

Get full info about a basic group.

Get highscores of a game

Returns the conversation history with one interlocutor / within a chat

Query an inline bot

Get highscores of a game sent using an inline bot

Get installed mask stickers

Find out if a media message's caption can be edited

Get message reaction list, along with the sender of each reaction.

Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent, see client configuration for more info ».

Returns the list of messages by their IDs.

Get and increase the view counter of a message sent or forwarded from a channel

Method for fetching previously featured stickers

Get count of online users in a chat

Get dialog info of specified peers

Get peer settings

Get pinned dialogs

Get pinned saved dialogs, see here » for more info.

Get poll results

Get poll results for non-anonymous polls

Get live location history of a certain user

Get recently used message reactions

Get recent stickers

Get messages in a reply thread

Returns the current saved dialog list, see here » for more info.

Get saved GIFs

Returns saved messages » forwarded from a specific peer

Get scheduled messages

Get scheduled messages

Get the number of results that would be found by a messages.search call with the same parameters

Returns information about the next messages of the specified type in the chat split by days.

Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.

Get message ranges for saving the user's chat history

Get stickers by emoji

Get info about a stickerset

Got popular message reactions

Get unread messages where we were mentioned

Get unread reactions to messages you sent

Get instant view page

Get preview of webpage

Dismiss or approve all join requests related to a specific chat or channel.

Dismiss or approve a chat join request related to a specific chat or channel.

Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ».

Import a chat invite and join a private chat/supergroup/channel

Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ».

Install a stickerset

Manually mark dialog as unread

Indicate to the server (from the user side) that the user is still using a web app.

Mark a thread as read

Marks message history within a secret chat as read.

Mark new featured stickers as read

Marks message history as read.

Mark mentions as read

Notifies the sender about the recipient having listened a voice message or watched a video.

Mark message reactions » as read

Confirms receipt of messages by a client, cancels PUSH-notification sending.

Confirms receipt of messages in a secret chat by client, cancels push notifications.
The method returns a list of*random_id**s of messages for which push notifications were cancelled.

Reorder pinned dialogs

Reorder pinned saved message dialogs ».

Reorder installed stickersets

Report a message in a chat for violation of telegram's Terms of Service

Report a secret chat for spam

Report a new incoming chat for spam, if the peer settings of the chat allow us to do that

Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.

Sends a request to start a secret chat to the user.

Open a bot mini app.

Get more info about a Seamless Telegram Login authorization request, for more info click here »

Open a bot mini app, sending over user information after user confirmation.

Change the default peer that should be used when sending messages, reactions, poll votes to a specific group

Save a message draft associated to a chat.

Add GIF to saved gifs list

Add/remove sticker from recent stickers list

Search for messages.

Look for custom emojis associated to a UTF8 emoji

Search for messages and peers globally

View and search recently sent media.
This method does not support pagination.

Search for stickersets

Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.

Sends a text message to a secret chat.

Sends a message with a file attachment to a secret chat

Sends a service message to a secret chat.

Send a result obtained using messages.getInlineBotResults.

Send a media

Sends a message to a chat

React to message.

Send scheduled messages right away

Notify the other user in a private chat that a screenshot of the chat was taken

Vote in a poll

Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.

Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.

Set the callback answer to a user button press (bots only)

Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Use this method to respond to such pre-checkout queries.
Note*: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.

Change the set of message reactions » that can be used in a certain group, supergroup or channel

Change the chat theme of a certain chat

Set a custom wallpaper » in a specific private chat with another user.

Changes the default value of the Time-To-Live setting, applied to all new chats.

Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getConfig, reactions_default field.

Send typing event by the current user to a secret chat.

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

Set maximum Time-To-Live of all messages in the specified chat

Answer an inline query, for bots only

Use this method to set the score of the specified user in a game sent as an inline message (bots only).

Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.

Start a conversation with a bot using a deep linking parameter

Complete the history import process, importing all messages into the chat.
To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia.

Enable or disable web bot attachment menu »

Pin/unpin a dialog

Enable or disable content protection on a channel or chat

Show or hide the real-time chat translation popup for a certain chat

Pin or unpin a saved message dialog ».

Apply changes to multiple stickersets

Translate a given text.

Uninstall a stickerset

Unpin all pinned messages

Update folder

Reorder folders

Pin a message

Upload encrypted file and associate it to a secret chat

Upload a media file associated with an imported chat, click here for more info ».

Upload a file and associate it to a chat (without actually sending it to the chat)

Informs server about a purchase made through the App Store: for official applications only.

Informs server about a purchase made through the Play Store: for official applications only.

Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only.

Obtain information about a Telegram Premium giftcode »

Clear saved payment information

Generate an invoice deep link

Get info about a credit card

Obtain information about a Telegram Premium giveaway ».

Get a payment form

Get payment receipt

Obtain a list of Telegram Premium giveaway/gift code » options.

Get saved payment information

Send compiled payment form

Submit requested order information for validation

Accept incoming call

Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs.
Returns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU.

Create a group call or livestream

Refuse or end running call

Terminate a group call

Edit information about a given group call participant

Edit the title of a group call or livestream

Get an invite link for a group call or livestream

Get phone call configuration to be passed to libtgvoip's shared config

Get info about a group call

Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.

Get info about RTMP streams in a group call or livestream.
This method should be invoked to the same group/channel-related DC used for downloading livestream chunks.
As usual, the media DC is preferred, if available.

Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall (the rtmp_stream flag must be set).

Get group call participants

Invite a set of users to a group call.

Join a group call

Start screen sharing in a call

Leave a group call

Stop screen sharing in a group call

Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.

Start a telegram phone call

Send phone call debug data to server

Save phone call debug information

Set the default peer that will be used to join a group call in a specific dialog.

Send VoIP signaling data

Rate a call, returns info about the rating message sent to the official VoIP bot.

Start a scheduled group call.

Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves).

Change group call settings

Subscribe or unsubscribe to a scheduled group call

Deletes profile photos. The method returns a list of successfully deleted photo IDs.

Returns the list of user photos.

Installs a previously uploaded photo as a profile photo.

Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.

Updates current user profile photo.

Apply one or more boosts » to a peer.

Obtains info about the boosts that were applied to a certain channel (admins only)

Gets the current number of boosts of a channel.

Obtain which peers are we currently boosting, and how many boost slots we have left.

Returns the lists of boost that were applied to a channel by a specific user (admins only)

Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of messages with peer_id equal to the public channel to which this message was forwarded.

Obtain forwards of a story as a message to public chats and reposts by public channels.

Get statistics for a certain story.

Load channel statistics graph asynchronously

Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.

Update the keywords, emojis or mask coordinates of a sticker, bots only.

Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot

Check whether the given short name is available

Create a stickerset, bots only.

Deletes a stickerset we created, bots only.

Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.

Renames a stickerset, bots only.

Set stickerset thumbnail

Suggests a short name for a given stickerpack name

Activates stories stealth mode, see here » for more info.

Check whether we can post stories as the specified peer.

Deletes some posted stories.

Edit an uploaded story

Generate a story deep link for a specific story

Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories updates, see here » for more info.

Fetch the List of active (or active and hidden) stories, see here » for more info on watching stories.

Obtain a list of channels where the user can post stories

Get the IDs of the maximum read stories for a set of peers.

Fetch the full active story list of a specific peer.

Fetch the stories pinned on a peer's profile.

Fetch the story archive » of a peer we control.

Obtain full info about a set of stories by their IDs.

Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.

Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.

Obtain the list of users that have viewed a specific story we posted

Increment the view counter of one or more stories.

Mark all stories up to a certain ID as read, for a given peer; will emit an updateReadStories update to all logged-in sessions.

Report a story.

React to a story.

Uploads a Telegram Story.

Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.

Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here » for more info.

Pin or unpin one or more stories

Returns the difference between the current state of updates of a certain channel and transmitted.

Get new updates.

Returns a current state of updates.

Download a CDN file.

Get SHA256 hashes for verifying downloaded CDN files

Returns content of a whole file or its part.

Get SHA256 hashes for verifying downloaded files

Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.

Request a reupload of a certain file to a CDN DC.

Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.

Saves a part of file for further sending to one of the methods.

Returns extended user info by ID.

Returns basic user info according to their identifiers.

Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).