Link Search Menu Expand Document

Method: messages.faveSticker

Back to methods index

Mark or unmark a sticker as favorite

Parameters:

NameTypeDescriptionRequired
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('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

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

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