-
Notifications
You must be signed in to change notification settings - Fork 21
getStickers
Sahri Riza Umami edited this page Jun 25, 2018
·
4 revisions
Returns stickers from the installed sticker sets that correspond to a given emoji.
If the emoji is not empty, favorite and recently used stickers may also be returned.
getStickers(emoji, limit, callback, data)
Field | Type | Description |
---|---|---|
emoji |
string | String representation of emoji. If empty, returns all known installed stickers. |
limit |
int32 | Maximum number of stickers to be returned. |
-
Get
2
stickers from installed ordinary sticker sets corresponding to the "😧" emoji.getStickers('😧', 2)
Response:
{ ["@type"] = "stickers", stickers = { { ["@type"] = "sticker", emoji = "😟", height = 512, is_mask = false, set_id = "1842540969984001", sticker = { ["@type"] = "file", expected_size = 35088, id = 158, ["local"] = { ["@type"] = "localFile", can_be_deleted = false, can_be_downloaded = true, downloaded_prefix_size = 0, downloaded_size = 0, is_downloading_active = false, is_downloading_completed = false, path = "" }, remote = { ["@type"] = "remoteFile", id = "CAADBQADGAADyIsGAAGsLFQJpxof0QI", is_uploading_active = false, is_uploading_completed = true, uploaded_size = 35088 }, size = 35088 }, thumbnail = { ["@type"] = "photoSize", height = 128, photo = { ["@type"] = "file", expected_size = 5216, id = 157, ["local"] = { ["@type"] = "localFile", can_be_deleted = false, can_be_downloaded = true, downloaded_prefix_size = 0, downloaded_size = 0, is_downloading_active = false, is_downloading_completed = false, path = "" }, remote = { ["@type"] = "remoteFile", id = "AAQFABPg4rEyAAV2KmD2GYnS-kkBAAEC", is_uploading_active = false, is_uploading_completed = true, uploaded_size = 5216 }, size = 5216 }, type = "m", width = 72 }, width = 288 }, { ["@type"] = "sticker", emoji = "😧", height = 512, is_mask = false, set_id = "1842540969984001", sticker = { ["@type"] = "file", expected_size = 50446, id = 194, ["local"] = { ["@type"] = "localFile", can_be_deleted = false, can_be_downloaded = true, downloaded_prefix_size = 0, downloaded_size = 0, is_downloading_active = false, is_downloading_completed = false, path = "" }, remote = { ["@type"] = "remoteFile", id = "CAADBQADRAADyIsGAAFtStkoP5sgQQI", is_uploading_active = false, is_uploading_completed = true, uploaded_size = 50446 }, size = 50446 }, thumbnail = { ["@type"] = "photoSize", height = 128, photo = { ["@type"] = "file", expected_size = 7002, id = 193, ["local"] = { ["@type"] = "localFile", can_be_deleted = false, can_be_downloaded = true, downloaded_prefix_size = 0, downloaded_size = 0, is_downloading_active = false, is_downloading_completed = false, path = "" }, remote = { ["@type"] = "remoteFile", id = "AAQFABPsyLEyAAShwwuRp_ZwHDtJAQABAg", is_uploading_active = false, is_uploading_completed = true, uploaded_size = 7002 }, size = 7002 }, type = "m", width = 100 }, width = 400 } } }
Frequently Asked Questions
The Functions
- getAuthorizationState
- setTdlibParameters
- checkDatabaseEncryptionKey
- setAuthenticationPhoneNumber
- resendAuthenticationCode
- checkAuthenticationCode
- checkAuthenticationPassword
- requestAuthenticationPasswordRecovery
- recoverAuthenticationPassword
- checkAuthenticationBotToken
- logOut
- close
- destroy
- setDatabaseEncryptionKey
- getPasswordState
- setPassword
- getRecoveryEmailAddress
- setRecoveryEmailAddress
- requestPasswordRecovery
- recoverPassword
- createTemporaryPassword
- getTemporaryPasswordState
- processDcUpdate
- getMe
- getUser
- getUserFullInfo
- getBasicGroup
- getBasicGroupFullInfo
- getSupergroup
- getSupergroupFullInfo
- getSecretChat
- getChat
- getMessage
- getRepliedMessage
- getChatPinnedMessage
- getMessages
- getFile
- getRemoteFile
- getChats
- searchPublicChat
- searchPublicChats
- searchChats
- searchChatsOnServer
- getTopChats
- removeTopChat
- addRecentlyFoundChat
- removeRecentlyFoundChat
- clearRecentlyFoundChats
- checkChatUsername
- getCreatedPublicChats
- getGroupsInCommon
- getChatHistory
- deleteChatHistory
- searchChatMessages
- searchMessages
- searchSecretMessages
- searchCallMessages
- searchChatRecentLocationMessages
- getActiveLiveLocationMessages
- getChatMessageByDate
- getPublicMessageLink
- sendMessage
- sendMessageAlbum
- sendBotStartMessage
- sendInlineQueryResultMessage
- forwardMessages
- sendChatSetTtlMessage
- sendChatScreenshotTakenNotification
- deleteMessages
- deleteChatMessagesFromUser
- editMessageText
- editMessageLiveLocation
- editMessageCaption
- editMessageReplyMarkup
- editInlineMessageText
- editInlineMessageLiveLocation
- editInlineMessageCaption
- editInlineMessageReplyMarkup
- getTextEntities
- parseTextEntities
- getFileMimeType
- getFileExtension
- getInlineQueryResults
- answerInlineQuery
- getCallbackQueryAnswer
- answerCallbackQuery
- answerShippingQuery
- answerPreCheckoutQuery
- setGameScore
- setInlineGameScore
- getGameHighScores
- getInlineGameHighScores
- deleteChatReplyMarkup
- sendChatAction
- openChat
- closeChat
- viewMessages
- openMessageContent
- readAllChatMentions
- createPrivateChat
- createBasicGroupChat
- createSupergroupChat
- createSecretChat
- createNewBasicGroupChat
- createNewSupergroupChat
- createNewSecretChat
- upgradeBasicGroupChatToSupergroupChat
- setChatTitle
- setChatPhoto
- setChatDraftMessage
- toggleChatIsPinned
- setChatClientData
- addChatMember
- addChatMembers
- setChatMemberStatus
- getChatMember
- searchChatMembers
- getChatAdministrators
- setPinnedChats
- downloadFile
- cancelDownloadFile
- uploadFile
- cancelUploadFile
- setFileGenerationProgress
- finishFileGeneration
- deleteFile
- generateChatInviteLink
- checkChatInviteLink
- joinChatByInviteLink
- createCall
- acceptCall
- discardCall
- sendCallRating
- sendCallDebugInformation
- blockUser
- unblockUser
- getBlockedUsers
- importContacts
- searchContacts
- removeContacts
- getImportedContactCount
- changeImportedContacts
- clearImportedContacts
- getUserProfilePhotos
- getStickers
- searchStickers
- getInstalledStickerSets
- getArchivedStickerSets
- getTrendingStickerSets
- getAttachedStickerSets
- getStickerSet
- searchStickerSet
- searchInstalledStickerSets
- searchStickerSets
- changeStickerSet
- viewTrendingStickerSets
- reorderInstalledStickerSets
- getRecentStickers
- addRecentSticker
- removeRecentSticker
- clearRecentStickers
- getFavoriteStickers
- addFavoriteSticker
- removeFavoriteSticker
- getStickerEmojis
- getSavedAnimations
- addSavedAnimation
- removeSavedAnimation
- getRecentInlineBots
- searchHashtags
- removeRecentHashtag
- getWebPagePreview
- getWebPageInstantView
- getNotificationSettings
- setNotificationSettings
- setNotificationSettings
- resetAllNotificationSettings
- setProfilePhoto
- deleteProfilePhoto
- setName
- setBio
- setUsername
- changePhoneNumber
- resendChangePhoneNumberCode
- checkChangePhoneNumberCode
- getActiveSessions
- terminateSession
- terminateAllOtherSessions
- getConnectedWebsites
- disconnectWebsite
- disconnectAllWebsites
- toggleBasicGroupAdministrators
- setSupergroupUsername
- setSupergroupStickerSet
- toggleSupergroupInvites
- toggleSupergroupSignMessages
- toggleSupergroupIsAllHistoryAvailable
- setSupergroupDescription
- pinSupergroupMessage
- unpinSupergroupMessage
- reportSupergroupSpam
- getSupergroupMembers
- deleteSupergroup
- closeSecretChat
- getChatEventLog
- getPaymentForm
- validateOrderInfo
- sendPaymentForm
- getPaymentReceipt
- getSavedOrderInfo
- deleteSavedOrderInfo
- deleteSavedCredentials
- getSupportUser
- getWallpapers
- registerDevice
- getRecentlyVisitedTMeUrls
- setUserPrivacySettingRules
- getUserPrivacySettingRules
- getOption
- setOption
- setAccountTtl
- getAccountTtl
- deleteAccount
- getChatReportSpamState
- changeChatReportSpamState
- reportChat
- getStorageStatistics
- getStorageStatisticsFast
- optimizeStorage
- setNetworkType
- getNetworkStatistics
- addNetworkStatistics
- resetNetworkStatistics
- setBotUpdatesStatus
- uploadStickerFile
- createNewStickerSet
- addStickerToSet
- setStickerPositionInSet
- removeStickerFromSet
- sendCustomRequest
- answerCustomQuery
- setAlarm
- getCountryCode
- getInviteText
- getTermsOfService
- setProxy
- getProxy
- testCallEmpty
- testCallString
- testCallBytes
- testCallVectorInt
- testCallVectorIntObject
- testCallVectorString
- testCallVectorStringObject
- testSquareInt
- testNetwork
- testGetDifference
- testUseUpdate
- testUseError
- sendText
- sendAnimation
- sendAudio
- sendDocument
- sendPhoto
- sendSticker
- sendVideo
- sendVideoNote
- sendVoiceNote
- sendLocation
- sendVenue
- sendContact
- sendGame
- sendInvoice
- sendForwarded