Skip to content

crazyilian/tgpy-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 

Repository files navigation

TGPy modules made by crazyilian

*made or edited

Some modules made for TGpy.

Installation

Nya

To install nya module manager, send the following message to any chat (it can be "Saved Messages" either):

import subprocess, sys; subprocess.run([sys.executable, "-m", "pip", "install", "gists.py"], check=True); import gists
source = "https://gist.github.com/miralushch/b43ce0642f89814981f341308ba9dac9"
code = (await gists.Client().get_gist(source)).files[0].content
nya = (await __import__("tgpy.api").api.tgpy_eval(code + '\nnya')).result[-1]
nya.install(source, code)

Modules from this repo

To add all the modules to nya registry, send the following message to any chat:

source = "https://raw.githubusercontent.com/crazyilian/tgpy-modules/main/modules/github_registry.py"
code = await (await nya._Nya__aiohttp_session.get(source)).text()
gh_reg = (await __import__("tgpy.api").api.tgpy_eval(code + "\ngh_reg")).result[-1]
nya.import_src_list(await gh_reg.get_sources('crazyilian/tgpy-modules/tree/main/modules'))

After that to install module {name}.py, send message:

nya.reg_install("{name}")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages