Structural changes
Some checks failed
Tests / test (3.10) (push) Failing after 1m10s
Tests / test (3.7) (push) Has been cancelled
Tests / test (3.8) (push) Has been cancelled
Tests / test (3.9) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled

This commit is contained in:
2023-11-19 22:38:51 +01:00
parent eb9a043c34
commit 9282578788
55 changed files with 144 additions and 150 deletions

View File

@@ -0,0 +1,19 @@
# Class is taken from source code of Pyrogram:
# https://github.com/pyrogram/pyrogram/blob/master/pyrogram/enums/auto_name.py
from enum import Enum
from pyrmv.const.product import PRODUCTS
class AutoName(Enum):
def __init__(self, code) -> None:
self.code = code
def _generate_next_value_(self, *args):
return self.lower()
def __repr__(self):
return f"pyrmv.enums.{self}"
class AutoNameProduct(AutoName):
def __init__(self, code) -> None:
self.code = PRODUCTS[code]