acceptContact
If the add contact action bar is active, add that user as contact
addContact
Add an existing telegram user as contact. Use contacts.importContacts to add contacts by phone number, without knowing their Telegram ID.
blockFromReplies
Stop getting notifications about discussion replies of a certain user in @replies
block
Adds a peer to a blocklist, see here ยป for more info.
deleteByPhones
Delete contacts by phone number
deleteContacts
Deletes several contacts from the list.
editCloseFriends
Edit the close friends list, see here ยป for more info.
exportContactToken
Generates a temporary profile link for the currently logged-in user.
getBirthdays
Fetch all users with birthdays that fall within +1/-1 days, relative to the current day: this method should be invoked by clients every 6-8 hours, and if the result is non-empty, it should be used to appropriately update locally cached birthday information in user.birthday. See here ยป for more info.
getBlocked
Returns the list of blocked users.
getContactIDs
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).
getContacts
Returns the current user's contact list.
getLocated
Get users and geochats near you, see here ยป for more info.
getSaved
Get all contacts, requires a takeout session, see here ยป for more info.
getSponsoredPeers
Obtain a list of sponsored peer search results for a given query
getStatuses
Use this method to obtain the online statuses of all contacts with an accessible Telegram account.
getTopPeers
Get most used peers
importContactToken
Obtain user info from a temporary profile link.
importContacts
Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info. Use contacts.addContact to add Telegram contacts without actually using their phone number.
resetSaved
Removes all contacts without an associated Telegram account.
resetTopPeerRating
Reset rating of top peer
resolvePhone
Resolve a phone number to get user info, if their privacy settings allow it. Make sure to implement client-side ratelimiting/debounce for this method, allowing at most 1 call every 3 seconds.
resolveUsername
Resolve a @username to get peer info
search
Returns users found by username substring.
setBlocked
Replace the contents of an entire blocklist, see here for more info ยป.
toggleTopPeers
Enable/disable top peers
unblock
Deletes a peer from a blocklist, see here ยป for more info.
updateContactNote
Update the private note associated to a contact; see here ยป for more info.