
    soj                     P    d dl Z d dlmZ  G d de          Z G d d          ZdS )    N)TgRestObjectTypec                        e Zd Z fdZ xZS )TgRestExceptionc                 X    || _         t                                          |           d S )N)messagesuper__init__)selfr   	__class__s     /app/src/model/tgrest/TgRest.pyr	   zTgRestException.__init__   s(    !!!!!    )__name__
__module____qualname__r	   __classcell__)r   s   @r   r   r      s8        " " " " " " " " "r   r   c                   .    e Zd ZdZdedefdZdefdZdS )TgRestzE
    TgRest class is used to create a Telegram REST API request.
    bot_idobject_typec                 "    || _         || _        dS )zI
        Constructor
        :param object_type: The object type
        N)r   r   )r
   r   r   kwargss       r   r	   zTgRest.__init__   s    
 "-8r   returnc                 4    t          j        | j                  S )zV
        Gets the request as json
        :return: The request as json string
        )jsondumps__dict__)r
   s    r   get_as_json_stringzTgRest.get_as_json_string   s     z$-(((r   N)r   r   r   __doc__strr   r	   r    r   r   r   r      s\         9s 91A 9 9 9 9)C ) ) ) ) ) )r   r   )r   !src.model.tgrest.TgRestObjectTyper   	Exceptionr   r   r    r   r   <module>r#      s|     > > > > > >" " " " "i " " ") ) ) ) ) ) ) ) ) )r   