MadelineProtoDocs/docs/API_docs/methods/messages.getEmojiKeywordsLanguages.md
2024-05-01 14:53:46 +02:00

1.6 KiB

title description grand_parent parent image redirect_from
messages.getEmojiKeywordsLanguages Obtain a list of related languages that must be used when fetching [emoji keyword lists »](https://core.telegram.org/api/custom-emoji#emoji-keywords). Telegram RPC API Methods https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/methods/messages_getEmojiKeywordsLanguages.html

Method: messages.getEmojiKeywordsLanguages

Back to methods index

Obtain a list of related languages that must be used when fetching emoji keyword lists ».

Usually the method will return the passed language codes (if localized) + en + some language codes for similar languages (if applicable).

Parameters:

Name Type Description Required
lang_codes Array of string The user's language codes Yes

Return type: Vector_of_EmojiLanguage

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();

$Vector_of_EmojiLanguage = $MadelineProto->messages->getEmojiKeywordsLanguages(lang_codes: ['string', 'string'], );