Source code for hydrogram.raw.functions.phone.get_group_call_chain_blocks

#  Hydrogram - Telegram MTProto API Client Library for Python
#  Copyright (C) 2023-present Hydrogram <https://hydrogram.org>
#
#  This file is part of Hydrogram.
#
#  Hydrogram is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Lesser General Public License as published
#  by the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  Hydrogram is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public License
#  along with Hydrogram.  If not, see <http://www.gnu.org/licenses/>.

from io import BytesIO

from hydrogram.raw.core.primitives import Int, Long, Int128, Int256, Bool, Bytes, String, Double, Vector
from hydrogram.raw.core import TLObject
from hydrogram import raw
from typing import List, Optional, Any

# # # # # # # # # # # # # # # # # # # # # # # #
#               !!! WARNING !!!               #
#          This is a generated file!          #
# All changes made in this file will be lost! #
# # # # # # # # # # # # # # # # # # # # # # # #


[docs] class GetGroupCallChainBlocks(TLObject): # type: ignore """Fetch the blocks of a conference blockchain ». Details: - Layer: ``223`` - ID: ``EE9F88A6`` Parameters: call (:obj:`InputGroupCall <hydrogram.raw.base.InputGroupCall>`): The conference. sub_chain_id (``int`` ``32-bit``): Subchain ID. offset (``int`` ``32-bit``): Offset for pagination. limit (``int`` ``32-bit``): Maximum number of blocks to return in this call, see pagination Returns: :obj:`Updates <hydrogram.raw.base.Updates>` """ __slots__: List[str] = ["call", "sub_chain_id", "offset", "limit"] ID = 0xee9f88a6 QUALNAME = "functions.phone.GetGroupCallChainBlocks" def __init__(self, *, call: "raw.base.InputGroupCall", sub_chain_id: int, offset: int, limit: int) -> None: self.call = call # InputGroupCall self.sub_chain_id = sub_chain_id # int self.offset = offset # int self.limit = limit # int @staticmethod def read(b: BytesIO, *args: Any) -> "GetGroupCallChainBlocks": # No flags call = TLObject.read(b) sub_chain_id = Int.read(b) offset = Int.read(b) limit = Int.read(b) return GetGroupCallChainBlocks(call=call, sub_chain_id=sub_chain_id, offset=offset, limit=limit) def write(self, *args) -> bytes: b = BytesIO() b.write(Int(self.ID, False)) # No flags b.write(self.call.write()) b.write(Int(self.sub_chain_id)) b.write(Int(self.offset)) b.write(Int(self.limit)) return b.getvalue()