platypush/plugins/chat/telegram/__init__.py
def pin_chat_message(self, chat_id: Union[str, int],
                         message_id: int,
                         disable_notification: Optional[bool] = None,
                         timeout: int = 20):
        """
        Pin a message in 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 message_id: Message ID.
        :param disable_notification: If True then no notification will be sent to the users.
        :param timeout: Request timeout (default: 20 seconds)
        """

        telegram = self.get_telegram()
        telegram.bot.pin_chat_message(
            chat_id=chat_id,
            message_id=message_id,
            disable_notification=disable_notification,
            timeout=timeout)

        Pin a message in 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 message_id: Message ID.
        :param disable_notification: If True then no notification will be sent to the users.
        :param timeout: Request timeout (default: 20 seconds)
        
Pin a message in a chat.
Pin a message in a chat .
def pin_chat_message(self, chat_id: Union[str, int],
                         message_id: int,
                         disable_notification: Optional[bool] = None,
                         timeout: int = 20):
        telegram = self.get_telegram()
        telegram.bot.pin_chat_message(
            chat_id=chat_id,
            message_id=message_id,
            disable_notification=disable_notification,
            timeout=timeout)
def pin_chat_message ( self , chat_id : Union [ str , int ] , message_id : int , disable_notification : Optional [ bool ] = None , timeout : int = 20 ) : telegram = self . get_telegram ( ) telegram . bot . pin_chat_message ( chat_id = chat_id , message_id = message_id , disable_notification = disable_notification , timeout = timeout )
Pin a message in a chat.
Pin a message in a chat .
"""
        Pin a message in 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 message_id: Message ID.
        :param disable_notification: If True then no notification will be sent to the users.
        :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 " .
message_id
int
None
disable_notification
Optional[bool]
If True then no notification will be sent to the users.
If True then no notification will be sent to the users .
timeout
int
Request timeout (default: 20 seconds)
Request timeout ( default : 20 seconds )