Login

Login

Log into your Telegram account using n8n Chat. You will need to provide Authentication Code that will be sent to Telegram app on your smartphone or computer. If you have MFA enabled on your account, you will be asked for the password and can provide it as well.

closeSession

removeTdDatabase

File

getRemoteFile

Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application

downloadFile

Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates.

Message

deleteMessages

Deletes Messages

editMessageText

Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side.s

forwardMessages

Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can’t be forwarded, null will be returned instead of the message.

getMessage

Returns information about a message.

sendMessage

Sends a Text message. Returns the sent message.

sendMessagePhoto

Sends a photo message. The photo must be at most 10 MB in size. The photo’s width and height must not exceed 10000 in total. Width and height ratio must be at most 20

Chat

addChatMembers

Adds multiple new members to a chat. Currently, this method is only available for supergroups and channels. This method can’t be used to join a chat. Members can’t be added to a channel if it has more than 200 members

createNewSupergroupChat

Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat

deleteChat

Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the username and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat

getChat

Returns information about a chat by its identifier, this is an offline request if the current user is not a bot.

getChatHistory

Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline request if only_local is true.

getChats

Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state.

getChat

Returns information about a chat by its identifier, this is an offline request.

joinChat

Adds the current user as a new member to a chat. Private and secret chats can’t be joined using this method. May return an error with a message “INVITE_REQUEST_SENT” if only a join request was created.

openChat

Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats).

closeChat

Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed.

searchPublicChat

Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise an error is returned.

searchPublicChats (in usernames, titles)

Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. Excludes private chats with contacts and chats from the chat list from the results.

sendChatAction

Sends a notification about user activity in a chat

toggleChatIsMarkedAsUnread

Changes the marked as unread state of a chat.

Group

getSupergroup

Returns information about a supergroup or a channel by its identifier. This is an offline request.

getSupergroupFullInfo

Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute.

Contact

getContacts

Returns all user contacts.

User

createNewSecretChat

Creates a new secret chat. Returns the newly created chat.

createPrivateChat

Returns an existing chat corresponding to a given user.

getMe

Returns the current user.

getUser

Returns information about a user by their identifier. This is an offline request.

getUserFullInfo

Returns full information about a user by their identifier.

Trigger

onEvent