# Path: botlistbot/models/basemodel.py
# class BaseModel(Model):
#     class Meta:
#         database = db


from peewee import *
from telegram import Chat
from botlistbot.models.basemodel import BaseModel
# -*- coding: utf-8 -*-


class Group(BaseModel):
    id = PrimaryKeyField()
    chat_id = IntegerField(unique=True)
    title = CharField()

    @staticmethod

# Path: botlistbot/models/basemodel.py
# class BaseModel(Model):
#     class Meta:
#         database = db


# Path: botlistbot/models/group.py
from peewee import *
from telegram import Chat
from botlistbot.models.basemodel import BaseModel

# -*- coding: utf-8 -*-


class Group(BaseModel):
    id = PrimaryKeyField()
    chat_id = IntegerField(unique=True)
    title = CharField()

    @staticmethod

    def from_telegram_object(group: Chat):