code: def pin_chat_message(chat_id, message_id, disable_notification=None, **kwargs):
      
  
      # required args
      params = dict(
          chat_id=chat_id,
          message_id=message_id
      )
  
      params.update(
          _clean_params(
              disable_notification=disable_notification,
          )
      )
  
      return TelegramBotRPCRequest('pinChatMessage', params=params, on_result=lambda result: result, **kwargs)
docs: Use this method to pin a message in a supergroup or a channel. The bot must be an administrator in the chat for this to work and
      must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel.
  
      :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
      :param message_id: Identifier of a message to pin
      :param disable_notification: Pass True, if it is not necessary to send a notification to all chat members about the new pinned message.
                                   Notifications are always disabled in channels.
      :param kwargs: Args that get passed down to :class:`TelegramBotRPCRequest`
      :return: Returns True on success.
      :rtype: bool