Skip to content

Function: likeMedia() ​

ts
function likeMedia(client, mediaId): Promise<void>;

Likes a media by its full id. Resolves on success; throws a typed error otherwise.

Parameters ​

ParameterType
clientPrivateClient
mediaIdstring

Returns ​

Promise<void>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.