MadelineProtoDocs/old_docs/API_docs_v29/constructors/langPackDifference.md
2020-06-16 17:50:25 +02:00

1.1 KiB

title description image
langPackDifference Changes to the app's localization pack https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: langPackDifference

Back to constructors index

Changes to the app's localization pack

Attributes:

Name Type Required Description
lang_code string Yes Language code
from_version int Yes Previous version number
version int Yes New version number
strings Array of LangPackString Yes Localized strings

Type: LangPackDifference

Example:

$langPackDifference = ['_' => 'langPackDifference', 'lang_code' => 'string', 'from_version' => int, 'version' => int, 'strings' => [LangPackString, LangPackString]];

Or, if you're into Lua:

langPackDifference={_='langPackDifference', lang_code='string', from_version=int, version=int, strings={LangPackString}}