Link Search Menu Expand Document

Method: messages.faveSticker

Back to methods index

Mark or unmark a sticker as favorite


idMessageMedia, Update, Message or InputDocumentSticker in questionOptional
unfaveBoolWhether to add or remove a sticker from favoritesYes

Return type: Bool

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$Bool = $MadelineProto->messages->faveSticker(id: $InputDocument, unfave: $Bool, );