platypush/plugins/chat/telegram/__init__.py
def kick_chat_member(self, chat_id: Union[str, int],
                         user_id: int,
                         until_date: Optional[datetime.datetime] = None,
                         timeout: int = 20):
        """
        Kick a user from a chat.

        :param chat_id: Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
            In order to get your own Telegram chat_id open a conversation with
            `@IDBot <https://telegram.me/IDBot>`_ and type ``/start`` followed by ``/getid``. Similar procedures
            also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".

        :param user_id: Unique user ID.
        :param until_date: End date for the ban.
        :param timeout: Request timeout (default: 20 seconds)
        """

        telegram = self.get_telegram()
        telegram.bot.kick_chat_member(
            chat_id=chat_id,
            user_id=user_id,
            until_date=until_date,
            timeout=timeout)

        Kick a user from a chat.

        :param chat_id: Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
            In order to get your own Telegram chat_id open a conversation with
            `@IDBot <https://telegram.me/IDBot>`_ and type ``/start`` followed by ``/getid``. Similar procedures
            also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".

        :param user_id: Unique user ID.
        :param until_date: End date for the ban.
        :param timeout: Request timeout (default: 20 seconds)
        
Kick a user from a chat.
Kick a user from a chat .
def kick_chat_member(self, chat_id: Union[str, int],
                         user_id: int,
                         until_date: Optional[datetime.datetime] = None,
                         timeout: int = 20):
        telegram = self.get_telegram()
        telegram.bot.kick_chat_member(
            chat_id=chat_id,
            user_id=user_id,
            until_date=until_date,
            timeout=timeout)
def kick_chat_member ( self , chat_id : Union [ str , int ] , user_id : int , until_date : Optional [ datetime . datetime ] = None , timeout : int = 20 ) : telegram = self . get_telegram ( ) telegram . bot . kick_chat_member ( chat_id = chat_id , user_id = user_id , until_date = until_date , timeout = timeout )
Kick a user from a chat.
Kick a user from a chat .
"""
        Kick a user from a chat.

        :param chat_id: Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
            In order to get your own Telegram chat_id open a conversation with
            `@IDBot <https://telegram.me/IDBot>`_ and type ``/start`` followed by ``/getid``. Similar procedures
            also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".

        :param user_id: Unique user ID.
        :param until_date: End date for the ban.
        :param timeout: Request timeout (default: 20 seconds)
        """
self
chat_id
Union[str, int]
Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
In order to get your own Telegram chat_id open a conversation with
`@IDBot `_ and type ``/start`` followed by ``/getid``. Similar procedures
also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".
Chat ID . Can be either a numerical ID or a unique identifier in the format ` ` @channelname ` ` . In order to get your own Telegram chat_id open a conversation with ` @IDBot ` _ and type ` ` / start ` ` followed by ` ` / getid ` ` . Similar procedures also exist to get a group or channel chat_id - just Google for " Telegram get channel / group chat_id " .
user_id
int
Unique user ID.
Unique user ID .
until_date
Optional[datetime.datetime]
End date for the ban.
End date for the ban .
timeout
int
Request timeout (default: 20 seconds)
Request timeout ( default : 20 seconds )