Link Search Menu Expand Document

Type: Updates

Back to types index

You can use the following methods to extract information from this constructor:

// Extract an array of Update constructors
$vector_of_update = $MadelineProto->extractUpdates($Updates);

// Extract an updateNewMessage, updateNewChannelMessage, updateEditMessage, updateEditChannelMessage constructor
$message_update = $MadelineProto->extractMessageUpdate($Updates);

// Extract a message constructor
$message = $MadelineProto->extractMessage($Updates);

// Extract a message ID
$message = $MadelineProto->extractMessageId($Updates);

Possible values (constructors):

updatesTooLong

updateShortMessage

updateShortChatMessage

updateShort

updatesCombined

updates

updateShortSentMessage

Methods that return an object of this type (methods):

$MadelineProto->account->getNotifyExceptions

$MadelineProto->account->updateConnectedBot

$MadelineProto->account->getBotBusinessConnection

$MadelineProto->contacts->deleteContacts

$MadelineProto->contacts->addContact

$MadelineProto->contacts->acceptContact

$MadelineProto->contacts->getLocated

$MadelineProto->contacts->blockFromReplies

$MadelineProto->messages->sendMessage

$MadelineProto->messages->sendMedia

$MadelineProto->messages->forwardMessages

$MadelineProto->messages->editChatTitle

$MadelineProto->messages->editChatPhoto

$MadelineProto->messages->deleteChatUser

$MadelineProto->messages->importChatInvite

$MadelineProto->messages->startBot

$MadelineProto->messages->migrateChat

$MadelineProto->messages->sendInlineBotResult

$MadelineProto->messages->editMessage

$MadelineProto->messages->getAllDrafts

$MadelineProto->messages->setGameScore

$MadelineProto->messages->sendScreenshotNotification

$MadelineProto->messages->sendMultiMedia

$MadelineProto->messages->updatePinnedMessage

$MadelineProto->messages->sendVote

$MadelineProto->messages->getPollResults

$MadelineProto->messages->editChatDefaultBannedRights

$MadelineProto->messages->sendScheduledMessages

$MadelineProto->messages->deleteScheduledMessages

$MadelineProto->messages->setHistoryTTL

$MadelineProto->messages->setChatTheme

$MadelineProto->messages->hideChatJoinRequest

$MadelineProto->messages->hideAllChatJoinRequests

$MadelineProto->messages->toggleNoForwards

$MadelineProto->messages->sendReaction

$MadelineProto->messages->getMessagesReactions

$MadelineProto->messages->setChatAvailableReactions

$MadelineProto->messages->sendWebViewData

$MadelineProto->messages->getExtendedMedia

$MadelineProto->messages->sendBotRequestedPeer

$MadelineProto->messages->setChatWallPaper

$MadelineProto->messages->sendQuickReplyMessages

$MadelineProto->messages->deleteQuickReplyMessages

$MadelineProto->messages->editFactCheck

$MadelineProto->messages->deleteFactCheck

$MadelineProto->messages->sendPaidReaction

$MadelineProto->messages->getPaidReactionPrivacy

$MadelineProto->channels->createChannel

$MadelineProto->channels->editAdmin

$MadelineProto->channels->editTitle

$MadelineProto->channels->editPhoto

$MadelineProto->channels->joinChannel

$MadelineProto->channels->leaveChannel

$MadelineProto->channels->deleteChannel

$MadelineProto->channels->toggleSignatures

$MadelineProto->channels->editBanned

$MadelineProto->channels->deleteHistory

$MadelineProto->channels->togglePreHistoryHidden

$MadelineProto->channels->editCreator

$MadelineProto->channels->toggleSlowMode

$MadelineProto->channels->convertToGigagroup

$MadelineProto->channels->toggleJoinToSend

$MadelineProto->channels->toggleJoinRequest

$MadelineProto->channels->toggleForum

$MadelineProto->channels->createForumTopic

$MadelineProto->channels->editForumTopic

$MadelineProto->channels->updatePinnedForumTopic

$MadelineProto->channels->reorderPinnedForumTopics

$MadelineProto->channels->toggleAntiSpam

$MadelineProto->channels->toggleParticipantsHidden

$MadelineProto->channels->updateColor

$MadelineProto->channels->toggleViewForumAsMessages

$MadelineProto->channels->updateEmojiStatus

$MadelineProto->channels->setBoostsToUnblockRestrictions

$MadelineProto->channels->restrictSponsoredMessages

$MadelineProto->bots->allowSendMessage

$MadelineProto->payments->assignAppStoreTransaction

$MadelineProto->payments->assignPlayMarketTransaction

$MadelineProto->payments->applyGiftCode

$MadelineProto->payments->launchPrepaidGiveaway

$MadelineProto->payments->refundStarsCharge

$MadelineProto->phone->discardCall

$MadelineProto->phone->setCallRating

$MadelineProto->phone->createGroupCall

$MadelineProto->phone->joinGroupCall

$MadelineProto->phone->leaveGroupCall

$MadelineProto->phone->inviteToGroupCall

$MadelineProto->phone->discardGroupCall

$MadelineProto->phone->toggleGroupCallSettings

$MadelineProto->phone->toggleGroupCallRecord

$MadelineProto->phone->editGroupCallParticipant

$MadelineProto->phone->editGroupCallTitle

$MadelineProto->phone->toggleGroupCallStartSubscription

$MadelineProto->phone->startScheduledGroupCall

$MadelineProto->phone->joinGroupCallPresentation

$MadelineProto->phone->leaveGroupCallPresentation

$MadelineProto->folders->editPeerFolders

$MadelineProto->chatlists->joinChatlistInvite

$MadelineProto->chatlists->joinChatlistUpdates

$MadelineProto->chatlists->leaveChatlist

$MadelineProto->stories->sendStory

$MadelineProto->stories->editStory

$MadelineProto->stories->activateStealthMode

$MadelineProto->stories->sendReaction

$MadelineProto->stories->getAllReadPeerStories