oxgram 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ appname = 'oxgram'
2
+ version = '0.0.1'
3
+
4
+ caption = 'ㅤ'
5
+ pythons = '~=3.10'
6
+ clinton = 'Clinton Abraham'
7
+ profile = 'https://github.com/Clinton-Abraham'
8
+
9
+ install = ['pyrofork', 'tgcrypto']
10
+ mention = ['bot', 'bots', 'telegram']
11
+
12
+ DATA01 = 'clintonabrahamc@gmail.com'
13
+ DATA02 = ['Natural Language :: English',
14
+ 'Intended Audience :: Developers',
15
+ 'Operating System :: OS Independent',
16
+ 'Programming Language :: Python :: 3.10',
17
+ 'Programming Language :: Python :: 3.11',
18
+ 'Programming Language :: Python :: 3.12',
19
+ 'Programming Language :: Python :: 3.13',
20
+ 'Topic :: Software Development :: Libraries',
21
+ 'Topic :: Software Development :: Localization',
22
+ 'Topic :: Software Development :: User Interfaces',
23
+ 'Topic :: Software Development :: Version Control']
@@ -0,0 +1,3 @@
1
+ from .exceptions import Cancelled
2
+ from .function01 import Pyrogram
3
+ from .function02 import Flinks
@@ -0,0 +1,14 @@
1
+ class SMessage:
2
+
3
+ def __init__(self, **kwargs):
4
+ self.errors = kwargs.get("errors", None)
5
+ self.result = kwargs.get("result", None)
6
+ self.numfiles = kwargs.get('numfiles', 0)
7
+ self.filesize = kwargs.get('filesize', 0)
8
+ self.allfiles = kwargs.get('allfiles', [])
9
+ self.filename = kwargs.get("filename", None)
10
+ self.taskcode = kwargs.get("taskcode", 5000)
11
+ self.location = kwargs.get('location', None)
12
+ self.filetype = kwargs.get("filetype", None)
13
+ self.extension = kwargs.get("extension", None)
14
+ self.thumbnail = kwargs.get("thumbnail", None)
@@ -0,0 +1,2 @@
1
+ class Cancelled(Exception):
2
+ pass
@@ -0,0 +1,6 @@
1
+ class Pyrogram:
2
+
3
+ async def get01(update):
4
+ return update.video or update.audio or update.voice or update.document or update.video_note
5
+
6
+ #=========================================================================================================
@@ -0,0 +1,14 @@
1
+ from pyrogram.enums import MessageEntityType
2
+ #==============================================================================================
3
+
4
+ class Flinks:
5
+
6
+ async def get01(update, incoming):
7
+ amoend = filter(lambda o: o.type == MessageEntityType.URL, update.entities)
8
+ amoond = list(amoend)
9
+ neomos = amoond[0].offset
10
+ sosmso = amoond[0].length
11
+ linked = incoming[ neomos : neomos + sosmso ]
12
+ return linked
13
+
14
+ #==============================================================================================
@@ -0,0 +1,22 @@
1
+ from .collections import SMessage
2
+ from pyrogram.enums import ChatMemberStatus
3
+ from pyrogram.errors import UserNotParticipant
4
+ #==============================================================
5
+
6
+ async def Forcesub(bot, update, channel=None):
7
+
8
+ if not channel:
9
+ return SMessage(taskcode=100)
10
+ try:
11
+ userid = update.from_user.id
12
+ usered = await bot.get_chat_member(channel, userid)
13
+ if (usered.status == ChatMemberStatus.BANNED):
14
+ return SMessage(taskcode=200)
15
+ else:
16
+ return SMessage(taskcode=100)
17
+ except UserNotParticipant:
18
+ return SMessage(taskcode=300)
19
+ except Exception as messages:
20
+ return SMessage(taskcode=400, errors=messages)
21
+
22
+ #==============================================================
@@ -0,0 +1 @@
1
+
oxgram-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,38 @@
1
+ Metadata-Version: 2.1
2
+ Name: oxgram
3
+ Version: 0.0.1
4
+ Summary: ㅤ
5
+ Home-page: https://github.com/Clinton-Abraham
6
+ Author: Clinton Abraham
7
+ Author-email: clintonabrahamc@gmail.com
8
+ Keywords: bot,bots,telegram
9
+ Classifier: Natural Language :: English
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Classifier: Topic :: Software Development :: Localization
18
+ Classifier: Topic :: Software Development :: User Interfaces
19
+ Classifier: Topic :: Software Development :: Version Control
20
+ Requires-Python: ~=3.10
21
+ Description-Content-Type: text/markdown
22
+ Requires-Dist: pyrofork
23
+ Requires-Dist: tgcrypto
24
+
25
+ <p align="center">
26
+ 📦 <a href="https://pypi.org/project/oxgram" style="text-decoration:none;">Oxgram</a>
27
+ </p>
28
+
29
+
30
+ ```python
31
+
32
+ from Oxgram.functions import views
33
+
34
+ value = views(10000)
35
+
36
+ print(value)
37
+
38
+ ```
oxgram-0.0.1/README.md ADDED
@@ -0,0 +1,14 @@
1
+ <p align="center">
2
+ 📦 <a href="https://pypi.org/project/oxgram" style="text-decoration:none;">Oxgram</a>
3
+ </p>
4
+
5
+
6
+ ```python
7
+
8
+ from Oxgram.functions import views
9
+
10
+ value = views(10000)
11
+
12
+ print(value)
13
+
14
+ ```
@@ -0,0 +1,38 @@
1
+ Metadata-Version: 2.1
2
+ Name: oxgram
3
+ Version: 0.0.1
4
+ Summary: ㅤ
5
+ Home-page: https://github.com/Clinton-Abraham
6
+ Author: Clinton Abraham
7
+ Author-email: clintonabrahamc@gmail.com
8
+ Keywords: bot,bots,telegram
9
+ Classifier: Natural Language :: English
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Classifier: Topic :: Software Development :: Localization
18
+ Classifier: Topic :: Software Development :: User Interfaces
19
+ Classifier: Topic :: Software Development :: Version Control
20
+ Requires-Python: ~=3.10
21
+ Description-Content-Type: text/markdown
22
+ Requires-Dist: pyrofork
23
+ Requires-Dist: tgcrypto
24
+
25
+ <p align="center">
26
+ 📦 <a href="https://pypi.org/project/oxgram" style="text-decoration:none;">Oxgram</a>
27
+ </p>
28
+
29
+
30
+ ```python
31
+
32
+ from Oxgram.functions import views
33
+
34
+ value = views(10000)
35
+
36
+ print(value)
37
+
38
+ ```
@@ -0,0 +1,15 @@
1
+ README.md
2
+ setup.py
3
+ Oxgram/__init__.py
4
+ Oxgram/functions/__init__.py
5
+ Oxgram/functions/collections.py
6
+ Oxgram/functions/exceptions.py
7
+ Oxgram/functions/function01.py
8
+ Oxgram/functions/function02.py
9
+ Oxgram/functions/function03.py
10
+ Oxgram/scripts/__init__.py
11
+ oxgram.egg-info/PKG-INFO
12
+ oxgram.egg-info/SOURCES.txt
13
+ oxgram.egg-info/dependency_links.txt
14
+ oxgram.egg-info/requires.txt
15
+ oxgram.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ pyrofork
2
+ tgcrypto
@@ -0,0 +1 @@
1
+ Oxgram
oxgram-0.0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
oxgram-0.0.1/setup.py ADDED
@@ -0,0 +1,30 @@
1
+ from setuptools import find_packages
2
+ from setuptools import setup
3
+ from Oxgram import appname
4
+ from Oxgram import version
5
+ from Oxgram import install
6
+ from Oxgram import caption
7
+ from Oxgram import pythons
8
+ from Oxgram import clinton
9
+ from Oxgram import profile
10
+ from Oxgram import mention
11
+ from Oxgram import DATA01
12
+ from Oxgram import DATA02
13
+
14
+ with open("README.md", "r") as o:
15
+ description = o.read()
16
+
17
+ setup(
18
+ url=profile,
19
+ name=appname,
20
+ author=clinton,
21
+ version=version,
22
+ keywords=mention,
23
+ classifiers=DATA02,
24
+ author_email=DATA01,
25
+ description=caption,
26
+ python_requires=pythons,
27
+ packages=find_packages(),
28
+ install_requires=install,
29
+ long_description=description,
30
+ long_description_content_type="text/markdown")