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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6becd65470a858d3c5f7a04e1ed5c330f7f8703b47eaf182dd03def1365676c6
|
|
| MD5 |
a51b2d36e70c28753753cfc3b2977566
|
|
| BLAKE2b-256 |
8437e065588c8e650d592012c31a9c0dd28a2bb58871512cf226b5531b79e381
|
File details
Details for the file nimarko_blocker-1.0.1-py3-none-any.whl.
File metadata
- Download URL: nimarko_blocker-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cfef3102f3d3a25dcb414224d8f07ee447ff6853e31becd410702cde4c2e37f
|
|
| MD5 |
66fd026d8e2febd81ebc88e85da83b70
|
|
| BLAKE2b-256 |
40c67f8182cc61b7f701c35989ea3fb4fdd976285b8897588f010a3d332f8f51
|