NimarkoGram Docs
RU
Docs/Metadata

Metadata

Declare a plugin identity and its app and SDK requirements.

On this pageIdentity and display nameCompatibilityShipping an update

Identity and display name

The engine reads top-level assignments before loading the class. Use literals for metadata. Installation requires non-empty __id__ and __name__. The ID must start with a Latin letter, be 2–32 characters long and contain only Latin letters, digits, hyphens or underscores.

Python
__id__ = "reading_notes"
__name__ = "Reading Notes"
__description__ = "Preferences for taking notes."
__author__ = "Author name"
__version__ = "1.0"

Compatibility

Field When to use it
__host__ Use "NimarkoGram" to select this host explicitly.
__sdk_version__ An SDK requirement such as ">=1.0". Set __host__ as well.
__app_version__ An app version requirement such as ">=13.4.4".
__min_version__ The minimum app version, for example "13.4.4".
__required_apis__ A list of public BasePlugin methods the plugin needs.
Python
__host__ = "NimarkoGram"
__sdk_version__ = ">=1.0"
__required_apis__ = ["add_menu_item", "get_setting"]

Shipping an update

__version__ identifies the plugin release. App and SDK requirements are checked independently. Keep the ID stable across updates. Changing the display name is fine. Changing the ID creates a separate entry.