31 lines
735 B
Python
31 lines
735 B
Python
![]() |
# Code generated by Lark OpenAPI.
|
||
|
|
||
|
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
|
||
|
from lark_oapi.core.construct import init
|
||
|
|
||
|
|
||
|
class Attachment(object):
|
||
|
_types = {
|
||
|
"file_id": str,
|
||
|
}
|
||
|
|
||
|
def __init__(self, d=None):
|
||
|
self.file_id: Optional[str] = None
|
||
|
init(self, d, self._types)
|
||
|
|
||
|
@staticmethod
|
||
|
def builder() -> "AttachmentBuilder":
|
||
|
return AttachmentBuilder()
|
||
|
|
||
|
|
||
|
class AttachmentBuilder(object):
|
||
|
def __init__(self) -> None:
|
||
|
self._attachment = Attachment()
|
||
|
|
||
|
def file_id(self, file_id: str) -> "AttachmentBuilder":
|
||
|
self._attachment.file_id = file_id
|
||
|
return self
|
||
|
|
||
|
def build(self) -> "Attachment":
|
||
|
return self._attachment
|