contacts.getBlocked
Returns the list of blocked users.
Authorization
bearerAuth In: header
Path Parameters
Workspace ID
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Returns the list of blocked users.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/contacts.getBlocked" \ -H "Content-Type: application/json" \ -d '{ "params": { "offset": 0, "limit": 0 } }'{ "result": { "_": "contacts.blocked", "blocked": [ { "_": "peerBlocked", "peerId": { "_": "peerUser", "userId": 0 }, "date": 0 } ], "chats": [ { "_": "chatEmpty", "id": 0 } ], "users": [ { "_": "userEmpty", "id": 0 } ] }}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 `RawUser`.birthday. [See here »](https://core.telegram.org/api/profile#birthday) for more info.
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).