Source code for pyrogram.raw.functions.phone.get_group_call

#  Pyrogram - Telegram MTProto API Client Library for Python
#  Copyright (C) 2017-present Dan <https://github.com/delivrance>
#
#  This file is part of Pyrogram.
#
#  Pyrogram 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.
#
#  Pyrogram 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 Pyrogram.  If not, see <http://www.gnu.org/licenses/>.

from io import BytesIO

from pyrogram.raw.core.primitives import Int, Long, Int128, Int256, Bool, Bytes, String, Double, Vector
from pyrogram.raw.core import TLObject
from pyrogram 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 GetGroupCall(TLObject): # type: ignore """Get info about a `group call <https://core.telegram.org/api/group-calls#getting-info-about-a-group-call>`_ and its participants. .. include:: /_includes/usable-by/users.rst Details: - Layer: ``229`` - ID: ``41845DB`` Parameters: call (:obj:`InputGroupCall <pyrogram.raw.base.InputGroupCall>`): Group call of any type to fetch limit (``int`` ``32-bit``): Maximum number of participants to return in this call (0 to return a server-defined amount). If the number of returned participants is less than `groupCall <https://core.telegram.org/constructor/groupCall>`_. ``participants_count``, paginate through the remaining participants using `phone.getGroupParticipants <https://core.telegram.org/method/phone.getGroupParticipants>`_, passing to ``offset`` the `phone.groupCall <https://core.telegram.org/constructor/phone.groupCall>`_. ``participants_next_offset`` returned by this call. This parameter behaves in a different way compared to the ``limit`` of `phone.getGroupParticipants <https://core.telegram.org/method/phone.getGroupParticipants>`_, see `here ยป <https://core.telegram.org/api/group-calls#getting-info-about-a-group-call>`_ for more info. Returns: :obj:`phone.GroupCall <pyrogram.raw.base.phone.GroupCall>` """ __slots__: List[str] = ["call", "limit"] ID = 0x41845db QUALNAME = "functions.phone.GetGroupCall" def __init__(self, *, call: "raw.base.InputGroupCall", limit: int) -> None: self.call = call # InputGroupCall self.limit = limit # int @staticmethod def read(b: BytesIO, *args: Any) -> "GetGroupCall": # No flags call = TLObject.read(b) limit = Int.read(b) return GetGroupCall(call=call, 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.limit)) return b.getvalue()