<reponame>jraylan/aiotdlib<filename>aiotdlib/api/functions/get_basic_group.py
# =============================================================================== #
#                                                                                 #
#    This file has been generated automatically!! Do not change this manually!    #
#                                                                                 #
# =============================================================================== #
from __future__ import annotations

from pydantic import Field

from ..base_object import BaseObject


class GetBasicGroup(BaseObject):
    """
    Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot
    
    :param basic_group_id: Basic group identifier
    :type basic_group_id: :class:`int`
    
    """

    ID: str = Field("getBasicGroup", alias="@type")
    basic_group_id: int

    @staticmethod
    def read(q: dict) -> GetBasicGroup:
        return GetBasicGroup.construct(**q)
