Skip to main content

Blocks unofficial Nimarkogram client with an undismissable bottomsheet

Project description

nimarko-blocker

A pip package for exteraGram/AyuGram plugins. Detects the Nimarkogram client (app.nimarkogram.messenger.web) and shows an undismissable bottomsheet warning the user to install the original exteraGram client.

Usage

Add the package to your plugin's requirements and call block_nimarko() on load:

__requirements__ = ["nimarko-blocker"]

class MyPlugin(BasePlugin):
    def on_plugin_load(self):
        from nimarko_blocker import block_nimarko
        block_nimarko()

That's it. If the current app package matches the Nimarko client, a bottomsheet will appear after 800ms with a 5-second countdown. After the countdown the user can tap the button to open https://t.me/exteraReleases in their default browser. The sheet cannot be closed by back button, swipe, or touch outside.

Please do not install a static version of the package via ==, I will update the application package if it changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nimarko_blocker-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nimarko_blocker-1.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file nimarko_blocker-1.0.1.tar.gz.

File metadata

  • Download URL: nimarko_blocker-1.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for nimarko_blocker-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6becd65470a858d3c5f7a04e1ed5c330f7f8703b47eaf182dd03def1365676c6
MD5 a51b2d36e70c28753753cfc3b2977566
BLAKE2b-256 8437e065588c8e650d592012c31a9c0dd28a2bb58871512cf226b5531b79e381

See more details on using hashes here.

File details

Details for the file nimarko_blocker-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nimarko_blocker-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cfef3102f3d3a25dcb414224d8f07ee447ff6853e31becd410702cde4c2e37f
MD5 66fd026d8e2febd81ebc88e85da83b70
BLAKE2b-256 40c67f8182cc61b7f701c35989ea3fb4fdd976285b8897588f010a3d332f8f51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page